<?php
/**
 * CVRank default arrays
 */

  // FUNCTION GET default values
  function get_defaultvalues () {
      $advanced_values = array (
             "ISCED999" => 1,
             "ISCED0" => 1,
             "ISCED010" => 2,
             "ISCED020" => 3,
             "ISCED1" => 4,
             "ISCED100" => 4,
             "ISCED2" => 4.5,
             "ISCED2-1" => 4.5,
             "ISCED2-2" => 5,
             "ISCED2-3" => 5.5,
             "ISCED2-4" => 6,
             "ISCED3" => 6.5,
             "ISCED3-1" => 6.5,
             "ISCED3-2" => 7,
             "ISCED3-3" => 7.5,
             "ISCED3-4" => 8,
             "ISCED4" => 8.5,
             "ISCED4-1" => 8.5,
             "ISCED4-3" => 9.5,
             "ISCED4-4" => 10,
             "ISCED5" => 10.5,
             "ISCED5-1" => 10.5,
             "ISCED5-4" => 11,
             "ISCED6" => 11.5,
             "ISCED6-1" => 11.5,
             "ISCED6-5" => 12,
             "ISCED6-6" => 12.1,
             "ISCED6-7" => 12.1,
             "ISCED7" => 12,
             "ISCED7-1" => 12,
             "ISCED7-6" => 12.1,
             "ISCED7-7" => 12.5,
             "ISCED7-8" => 12.6,
             "ISCED8" => 12.5,
             "ISCED8-1" => 12.5,
             "ISCED8-4" => 13, 
             "ISCED-4-" => 1,
             "ISCED-5-" => 1,
             "ISCED-6-" => 1,
             "ISCED999" => 1,
             "ISCE0" => 2,
             "ISCE1" => 5,
             "ISCE2" => 5.5,
             "ISCE3" => 7.5,
             "ISCE4" => 9.5,
             "ISCE5" => 11.5,
             "ISCE6" => 12.5,
             "ISCE7" => 13,
             "ISCE8" => 13.5,
             "edudbgen" => 0.5,
      // if it is an exam, give stdyear values; by default = 1 year of study for all
             "exam" => 1,
             "accessexam" => 1,
             "stateexam" => 1,
             "officialexam" => 1,
             "privateexam" => 1,
      // classrank gives a maximum of 5% more
             "crank" => 0.05,
      // classrank is a power of... (the bigger the less value given to lesser values)
             "powerrank" => 2,
     // prizes give the following (conventional - CVRank) values over 100%
             "intprize" => 1,
             "natprize" => 0.75,
             "regprize" => 0.5,
             "instprize" => 0.25,
             "classprize" => 0.1,
      // Maximum ("reasonable") expected wage/week: US$ >1M/year = 20000/week = 500/hour / (working 20 hours/week) 
      // = 25 => log = 5.52
             "maxwage" => 3.21,
      // From Forbes: Gains of foreign language comparable with simply staying in school a bit longer: 
      // "Saiz and Zoido found that an extra year of schooling yielded an 8% to 14% wage premium"
      // http://www.forbes.com/2008/02/22/popular-foreign-languages-tech-language_sp08-cx_rr_0222foreign.html
             "difflang" => "ISCED4-4",
      // Categories FSI - extrapolated from level 3 -> 4 (according to CVRank), and added new category
             "lang0" => 1,
             "langI" => 1.5,
             "langII" => 2,
             "langIII" => 3,
             "langIV" => 3.5,
             "langV" => 5,
      // mother tongue is given minimum Nr years (no merit in comparison to others...)
       // thus, "multiple mother tongues" are avoided...
             "mother" => "lang0",
       // if user already has a mother tongue of the same type, multiply by:
             "mother2" => 0.5,
       // if user already speaks a foreign language of the same type, multiply by:
             "foreign2" => 0.75,
       // minimum given to mother tongue 1 and mother tongue 2
             "minlang1" => 91,
             "minlang2" => 90,
       // maximum possible for foreign languages
             "maxlang2" => 95,
       // weights given to impact factor and eigenfactor (both should sum up 1)
             "impact" => 0.5,
             "eigen" => 0.5,
       // stdyear for research: suppose a conservative, general (potential) 10 articles/year
          // it needs to be thought in terms of full dedication (like all other achievements and merits), 
          // not actual number of months spent (part-time for professors, doctors,...) on the articles
             "resyear" => 0.1,
       // WOK and Google Scholar citations weight (must add to 1)
          // Google Scholar takes into account conferences and post-1990 journals better
             "WOK" => 0.5,
             "GOOG" => 0.5,
       // Prize values from 0-1, multiply final CVR (be careful: they can be added!)
             "prcited" => 0.25,
             "prnobel" => 1,
             "prother" => 0.1,
       // if $posfactor is 1, and there are only 2 authors, the first name is given full CVR; 
       // if $posfactor is <1 or there are >2 authors, he is given less
             "posfactor" => 1,
       // level correction factor: avoid too much weight for publications dependent on academic level
             "levelfactor" => 0.9,
       // stdyear for publication: we have to suppose full-time dedication (actual time spent)
       // potentially (full dedication) you can give a lot of conferences and courses...
             "live" => 0.01,
       // suppose 10 possible works a year (average quality)
             "written" => 0.1,
       // suppose between conferences and written
             "media" => 0.05,
       // weight for publications' scores readers/viewers and units sold and 
             "VIEW" => 0.5,
             "SOLD" => 0.5,
       // suppose a general 10 skills learnt / year
             "skillyear" => 0.1,
       // to avoid multiple related skills, this coef has as exp number of same skills, and multiplies CVR
       // the lesser the number, the lesser the value of each skill of the same type, when multiple similar skills
             "skillcoef" => 0.99,
      // CVR standard values
          // ratemult: multiplication factor for prestige rating (scale the original 0-100 scale)
             "ratemult" => 0.005,
          // ratemult: addition factor for prestige rating (where the new scale begins)
             "rateadd" => -0.25,
             "maxscore" => 99.9,
             "z" => 4,
                 );
       $edufields = array(
'any' => array(0, 'gen', 'gen'),
   '0'=> array(0, 'gen', 'gen'),
//'01'=> array(0, 'gen', 'gen'),
'010'=> array(0, 'gen', 'gen'),
//'08'=> array(0, 'gen', 'gen'),
'080'=> array(0, 'gen', 'gen'),
//'09'=> array(0, 'gen', 'gen'),
'090'=> array(0, 'gen', 'gen'),
'1'=> array(0, 'read', 'art'),
//'14'=> array(0, 'read', 'art'),
'140'=> array(0, 'read', 'art'),
'141'=> array(0, 'read', 'art'),
'142'=> array(0, 'read', 'art'),
'143'=> array(0, 'read', 'art'),
'144'=> array(0, 'read', 'art'),
'145'=> array(0, 'read', 'art'),
'146'=> array(0, 'read', 'art'),
'149'=> array(0, 'read', 'art'),
'2'=> array(0, 'read', 'art'),
'21'=> array(0, 'read', 'art'),
'210'=> array(0, 'read', 'art'),
'211'=> array(0, 'read', 'art'),
'212'=> array(0, 'read', 'art'),
'213'=> array(0, 'read', 'art'),
'214'=> array(0, 'read', 'art'),
'215'=> array(0, 'read', 'art'),
'219'=> array(0, 'read', 'art'),
'22'=> array(0, 'read', 'art'),
'220'=> array(0, 'read', 'art'),
'221'=> array(0, 'read', 'art'),
'222'=> array(0, 'read', 'art'),
'223'=> array(0, 'read', 'art'),
'225'=> array(0, 'read', 'art'),
'226'=> array(0, 'read', 'art'),
'229'=> array(0, 'read', 'art'),
'3'=> array(0, 'read', 'soc'),
'31'=> array(0, 'read', 'soc'),
'310'=> array(0, 'read', 'soc'),
'311'=> array(0, 'read', 'soc'),
'312'=> array(0, 'read', 'soc'),
'313'=> array(0, 'read', 'soc'),
'314'=> array(0, 'read', 'soc'),
'319'=> array(0, 'read', 'soc'),
'32'=> array(0, 'read', 'soc'),
'321'=> array(0, 'read', 'soc'),
'322'=> array(0, 'read', 'soc'),
'329'=> array(0, 'read', 'soc'),
'34'=> array(0, 'read', 'soc'),
'340'=> array(0, 'read', 'soc'),
'341'=> array(0, 'read', 'soc'),
'342'=> array(0, 'read', 'soc'),
'343'=> array(0, 'read', 'soc'),
'344'=> array(0, 'read', 'soc'),
'345'=> array(0, 'read', 'soc'),
'346'=> array(0, 'read', 'soc'),
'347'=> array(0, 'read', 'soc'),
'349'=> array(0, 'read', 'soc'),
'38'=> array(0, 'read', 'soc'),
'380'=> array(0, 'read', 'soc'),
'4'=> array(0, 'scie', 'sci'),
'42'=> array(0, 'scie', 'sci'),
'421'=> array(0, 'scie', 'sci'),
'422'=> array(0, 'scie', 'sci'),
'429'=> array(0, 'scie', 'sci'),
'44'=> array(0, 'scie', 'sci'),
'440'=> array(0, 'scie', 'sci'),
'441'=> array(0, 'scie', 'sci'),
'442'=> array(0, 'scie', 'sci'),
'443'=> array(0, 'scie', 'sci'),
'449'=> array(0, 'scie', 'sci'),
'46'=> array(0, 'math', 'sci'),
'461'=> array(0, 'math', 'sci'),
'462'=> array(0, 'math', 'sci'),
'469'=> array(0, 'math', 'sci'),
'48'=> array(0, 'math', 'sci'),
'481'=> array(0, 'math', 'sci'),
'482'=> array(0, 'math', 'sci'),
'489'=> array(0, 'math', 'sci'),
'5'=> array(0, 'math', 'tech'),
'52'=> array(0, 'math', 'tech'),
'520'=> array(0, 'math', 'tech'),
'521'=> array(0, 'math', 'tech'),
'522'=> array(0, 'math', 'tech'),
'523'=> array(0, 'math', 'tech'),
'524'=> array(0, 'math', 'tech'),
'525'=> array(0, 'math', 'tech'),
'529'=> array(0, 'math', 'tech'),
'54'=> array(0, 'math', 'tech'),
'540'=> array(0, 'math', 'tech'),
'541'=> array(0, 'math', 'tech'),
'542'=> array(0, 'math', 'tech'),
'543'=> array(0, 'math', 'tech'),
'544'=> array(0, 'math', 'tech'),
'549'=> array(0, 'math', 'tech'),
'58'=> array(0, 'math', 'tech'),
'581'=> array(0, 'math', 'tech'),
'582'=> array(0, 'math', 'tech'),
'589'=> array(0, 'math', 'tech'),
'6'=> array(0, 'scie', 'sci'),
'62'=> array(0, 'scie', 'sci'),
'620'=> array(0, 'scie', 'sci'),
'621'=> array(0, 'scie', 'sci'),
'622'=> array(0, 'scie', 'sci'),
'623'=> array(0, 'scie', 'sci'),
'624'=> array(0, 'scie', 'sci'),
'629'=> array(0, 'scie', 'sci'),
'64'=> array(0, 'scie', 'sci'),
'640'=> array(0, 'scie', 'sci'),
'7'=> array(0, 'scie', 'sci'),
'72'=> array(0, 'scie', 'sci'),
'720'=> array(0, 'scie', 'sci'),
'721'=> array(0, 'scie', 'sci'),
'723'=> array(0, 'scie', 'sci'),
'724'=> array(0, 'scie', 'sci'),
'725'=> array(0, 'scie', 'sci'),
'726'=> array(0, 'scie', 'sci'),
'727'=> array(0, 'scie', 'sci'),
'729'=> array(0, 'scie', 'sci'),
'76'=> array(0, 'read', 'sci'),
'761'=> array(0, 'read', 'sci'),
'762'=> array(0, 'read', 'sci'),
'769'=> array(0, 'read', 'sci'),
'8'=> array(0, 'read', 'soc'),
'81'=> array(0, 'read', 'soc'),
'810'=> array(0, 'read', 'soc'),
'811'=> array(0, 'read', 'soc'),
'812'=> array(0, 'read', 'soc'),
'813'=> array(0, 'read', 'soc'),
'814'=> array(0, 'read', 'soc'),
'815'=> array(0, 'read', 'soc'),
'819'=> array(0, 'read', 'soc'),
'84'=> array(0, 'math', 'tech'),
'840'=> array(0, 'math', 'tech'),
'85'=> array(0, 'scie', 'sci'),
'850'=> array(0, 'scie', 'sci'),
'851'=> array(0, 'scie', 'sci'),
'852'=> array(0, 'scie', 'sci'),
'853'=> array(0, 'scie', 'sci'),
'859'=> array(0, 'scie', 'sci'),
'86'=> array(0, 'read', 'soc'),
'860'=> array(0, 'read', 'soc'),
'861'=> array(0, 'read', 'soc'),
'862'=> array(0, 'read', 'soc'),
'863'=> array(0, 'read', 'soc'),
'869'=> array(0, 'read', 'soc'),
//'99'=> 0,
  );
  
  // array($value, $country, array $supranational, $subcontinent, array $languages),
        $educountries = array( 
 'any' => array(0),
'United States' => array(0, "US", array("USCA", "NAFTA"), "NA", array("eng")),
'United Kingdom' => array(0, "UK", array("Cwlth", "EU"), "Europe", array("eng")),
'Afghanistan' => array(0, 0, 0, "SAs", array()),
'Albania' => array(0, 0, 0, "Europe", array()),
'Algeria' => array(0, 0, array("Arab"), "Africa", array("ara")),
'American Samoa' => array(0, "US", array("USCA"), "Oceania",  array("eng")),
'Andorra' => array(0, 0, array("EU"), "Europe", array("spa")),
'Angola' => array(0, 0, 0, "Africa",  array("por")),
'Anguilla' => array(0, "UK", array("Cwlth", "EU"), "Caribbean", array("eng")),
'Antigua & Barbuda' => array(0, 0, array("Cwlth"), "Caribbean", array("eng")),
'Argentina' => array(0, 0, array("Mercosur"), "SA", array("spa")),
'Armenia' => array(0, 0, array("CIS", "OIF"), "Europe"),
'Aruba' => array(0, "NL", array("EU", "Benelux"), "Caribbean", array("nld")),
'Australia' => array(0, "AU", array("Cwlth"), "Oceania", array("eng")),
'Austria' => array(0, 0, array("EU"), "Europe", array("deu")),
'Azerbaijan' => array(0, 0, array("CIS"), "Europe", array()),
'Bahamas' => array(0, 0, array("Cwlth"), "Caribbean", array("eng")),
'Bahrain' => array(0, 0, array("Arab"), "NE", array("ara")),
'Bangladesh' => array(0, 0, array("Cwlth"), "SAs", array()),
'Barbados' => array(0, 0, array("Cwlth"), "Europe", array()),
'Belarus' => array(0, 0, array("CIS", "TSouz"), "Europe", array("rus")),
'Belgium' => array(0, 0, array("EU", "Benelux", "OIF"), "Europe", array("fra", "nld")),
'Belize' => array(0, 0, array("Cwlth"), "NA", array("eng")),
'Benin' => array(0, 0, 0, "Africa", array()),
'Bermuda' => array(0, "UK", array("Cwlth", "EU"), "Caribbean", array("eng")),
'Bhutan' => array(0, 0, 0, "SAs", array()),
'Bolivia' => array(0, 0, array("CAN"), "SA",  array("spa")),
'Bonaire' => array(0, "NL", array("EU", "Benelux"), "Caribbean", array("nld")),
'Bosnia & Herzegovina' => array(0, 0, 0, "Europe", array()),
'Botswana' => array(0, 0, array("Cwlth"), "Africa", array("eng")),
'Brazil' => array(0, 0, array("Mercosur"), "SA", array("por")),
'British Indian Ocean Ter' => array(0, "UK", array("Cwlth", "EU"), "SAs", array("eng")),
'Brunei' => array(0, 0, array("Cwlth"), "SEAs", array()),
'Bulgaria' => array(0, 0, array("EU", "OIF"), "Europe", array()),
'Burkina Faso' => array(0, 0, array("OIF"), "Africa", array("fra")),
'Burundi' => array(0, 0, array("OIF"), "Africa", array("fra")),
'Cambodia' => array(0, 0, array("OIF"), "SEAs", array()),
'Cameroon' => array(0, 0, array("Cwlth", "OIF"), "Africa", array("fra", "eng")),
'Canada' => array(0, 0, array("USCA", "Cwlth", "NAFTA", "OIF"), "NA", array("eng", "fra")),
'Cape Verde' => array(0, 0, 0, "Africa", array("por")),
'Cayman Islands' => array(0, "UK", array("Cwlth", "EU"), "Caribbean", array("eng")),
'Central African Republic' => array(0, 0, array("OIF"), "Africa", array("fra")),
'Chad' => array(0, 0, array("OIF"), "Africa", array("fra", "ara")),
'Channel Islands' => array(0, 0, array("Cwlth", "EU"), "Europe", array("eng", "fra")),
'Chile' => array(0, 0, 0, "SA", array()),
'China' => array(0, "CN", 0, "EAs", array("cmn")),
'Christmas Island' => array(0, "AU", array("Cwlth"), "Oceania", array()),
'Colombia' => array(0,  0, array("CAN"), "SA",  array("spa")),
'Comoros' => array(0, 0, array("Arab"), "Africa", array("ara", "fra")),
'Congo' => array(0, 0, 0, "Africa", array("fra")),
'Cook Islands' => array(0, "NZ", array("Cwlth"), "Oceania", array("eng")),
'Costa Rica' => array(0, 0, 0, "NA", array("spa")),
'Cote DIvoire' => array(0, 0, array("OIF"), "Africa", array("fra")),
'Croatia' => array(0, 0, array("EU"), "Europe", array()),
'Cuba' => array(0, 0, 0, "Caribbean", array("spa")),
'Curaco' => array(0, array("NL", "EU", "Caribbean", "America")),
'Cyprus' => array(0, 0, array("EU", "Cwlth", "OIF"), "Europe", array()),
'Czech Republic' => array(0, 0, array("EU"), "Europe", array()),
'Denmark' => array(0, "DK", array("EU"), "Europe", array()),
'Djibouti' => array(0, 0, array("Arab", "OIF"), "Africa", array("ara")),
'Dominica' => array(0, 0, array("Cwlth"), "Caribbean", array("eng", "fra")),
'Dominican Republic' => array(0, 0, 0, "NA", array("spa")),
'East Timor' => array(0, 0, 0, "SEAs", array("por")),
'Ecuador' => array(0,  0, array("CAN"), "SA",  array("spa")),
'Egypt' => array(0, 0, array("Arab"), "Africa", array("ara")),
'El Salvador' => array(0, 0, 0, "NA", array("spa")),
'Equatorial Guinea' => array(0, 0, 0, "Africa", array("spa")),
'Eritrea' => array(0, 0, 0, "Africa", array("ara")),
'Estonia' => array(0, 0, array("EU"), "Europe", array()),
'Ethiopia' => array(0, 0, 0, "Africa", array()),
'Falkland Islands' => array(0, "UK", array("Cwlth", "EU"), "SA", array("eng")),
'Faroe Islands' => array(0, "DK", array(), "Europe", array()),
'Fiji' => array(0, 0, array("Cwlth"), "Oceania", array("eng")),
'Finland' => array(0, 0, array("EU"), "Europe", array()),
'France' => array(0, "FR", array("EU", "OIF"), "Europe", array("fra")),
'French Guiana' => array(0, "FR", array("EU", "OIF"), "NA", array("fra")),
'French Polynesia' => array(0, "FR", array("EU", "OIF"), "Oceania", array("fra")),
'French Southern Ter' => array(0, "FR", array("EU", "OIF"), "Africa", array("fra")),
'Gabon' => array(0, 0, array("OIF"), "Africa", array("fra")),
'Gambia' => array(0, 0, array("Cwlth"), "Africa", array("eng")),
'Georgia' => array(0, 0, 0, "Europe", array()),
'Germany' => array(0, 0, array("EU"), "Europe", array("deu")),
'Ghana' => array(0, 0, array("Cwlth","OIF"), "Africa", array("eng")),
'Gibraltar' => array(0, "UK", array("Cwlth", "EU"), "Europe", array("eng", "spa")),
'Greece' => array(0, 0, array("EU", "OIF"), "Europe", array()),
'Greenland' => array(0, "DK", array(), "NA", array()),
'Grenada' => array(0, 0, array("Cwlth"), "Caribbean", array("eng")),
'Guadeloupe' => array(0, "FR", array("EU", "OIF"), "Caribbean", array("fra")),
'Guam' => array(0, "US", array("USCA", "NAFTA"), "Oceania", array("eng")),
'Guatemala' => array(0, 0, 0, "NA", array("spa")),
'Guinea' => array(0, 0, array("OIF"), "Africa", array("fra")),
'Guinea-Bissau' => array(0, 0, 0, "Africa", array("por")),
'Guyana' => array(0, 0, array("Cwlth"), "NA", array("eng")),
'Haiti' => array(0, 0, array("OIF"), "Caribbean", array("fra")),
'Honduras' => array(0, 0, 0, "NA", array("spa")),
'Hong Kong' => array(0, "CN", 0, "EAs", array("cmn", "eng")),
'Hungary' => array(0, 0, array("EU"), "Europe", array()),
'Iceland' => array(0, 0, 0, "Europe", array()),
'India' => array(0, 0, array("Cwlth"), "SAs", array("eng")),
'Indonesia' => array(0, 0, 0, "SEA", array()),
'Iran' => array(0, 0, 0, "NE", array()),
'Iraq' => array(0, 0, array("Arab"), "NE", array("ara")),
'Ireland' => array(0, 0, array("EU"), "Europe", array("eng")),
'Isle of Man' => array(0, "UK", array("Cwlth", "EU"), "Europe", array("eng")),
'Israel' => array(0, 0, 0, "Europe", array()),
'Italy' => array(0, 0, array("EU"), "Europe", array()),
'Jamaica' => array(0, 0, array("Cwlth"), "Caribbean", array("eng")),
'Japan' => array(0, 0, 0, "EAs", array()),
'Jordan' => array(0, 0, array("Arab"), "NE", array("ara")),
'Kazakhstan' => array(0, 0, array("CIS", "TSouz"), "CAs", array("rus")),
'Kenya' => array(0, 0, array("Cwlth"), "Africa", array("eng")),
'Kiribati' => array(0, 0, array("Cwlth"), "Oceania", array("eng")),
'Korea North' => array(0, 0, 0, "EAs", array()),
'Korea' => array(0, 0, 0, "EAs", array()),
'Kosovo' => array(0, 0, 0, "Europe", array()),
'Kuwait' => array(0, 0, array("Arab"), "NE", array("ara")),
'Kyrgyzstan' => array(0, 0, array("CIS"), "CAs", array("rus")),
'Laos' => array(0, 0, 0, "SEA", array()),
'Latvia' => array(0, 0, array("EU"), "Europe", array()),
'Lebanon' => array(0, 0, array("Arab", "OIF"), "NE", array()),
'Lesotho' => array(0, 0, array("Cwlth"), "Africa", array("eng")),
'Liberia' => array(0, 0, 0, "Africa", array("eng")),
'Libya' => array(0, 0, array("Arab"), "Africa", array("ara")),
'Liechtenstein' => array(0, 0, array("EU"), "Europe", array("deu")),
'Lithuania' => array(0, 0, array("EU"), "Europe", array()),
'Luxembourg' => array(0, 0, array("EU", "Benelux"), "Europe", array("deu")),
'Macau' => array(0, "CN", 0, "EAs", array("cmn", "por")),
'Macedonia' => array(0, 0, array("EU"), "Europe", array()),
'Madagascar' => array(0, 0, array("OIF"), "Africa", array("fra")),
'Malaysia' => array(0, 0, array("Cwlth"), "SEA", array()),
'Malawi' => array(0, 0, array("Cwlth"), "Africa", array("eng")),
'Maldives' => array(0, 0, array("Cwlth"), "SAs", array()),
'Mali' => array(0, 0, array("OIF"), "Africa", array("fra")),
'Malta' => array(0, 0, array("EU", "Cwlth"), "Europe", array()),
'Marshall Islands' => array(0, "US", array("USCA", "NAFTA"), "Oceania", array("eng")),
'Martinique' => array(0, "FR", array("EU", "OIF"), "Caribbean", array("fra")),
'Mauritania' => array(0, 0, array("Arab"), "Africa", array("ara")),
'Mauritius' => array(0, 0, array("Cwlth"), "Africa", array("eng", "fra")),
'Mayotte' => array(0, "FR", array("EU", "OIF"), "Africa", array("fra")),
'Mexico' => array(0, 0, array("NAFTA"), "NA", array("spa")),
'Midway Islands' => array(0, 0, 0, "Oceania", array("eng")),
'Moldova' => array(0, 0, array("CIS"), "Europe", array("rus")),
'Monaco' => array(0, 0, array("EU"), "Europe", array("fra")),
'Mongolia' => array(0, 0, 0, "EAs", array()),
'Montenegro' => array(0, 0, 0, "Europe", array()),
'Montserrat' => array(0, "UK", array("Cwlth", "EU"), "Caribbean", array("eng")),
'Morocco' => array(0, 0, array("Arab", "OIF"), "Africa", array("ara")),
'Mozambique' => array(0, 0, array("Cwlth"), "Africa", array("por")),
'Myanmar' => array(0, 0, 0, "SEA", array()),
'Namibia' => array(0, 0, array("Cwlth"), "Africa", array("eng")),
'Nauru' => array(0, 0, array("Cwlth"), "Oceania", array("eng")),
'Nepal' => array(0, 0, 0, "SAs", array()),
'Netherland Antilles' => array(0, "NL", array("EU", "Benelux"), "Caribbean", array("nld")),
'Netherlands' => array(0, "NL", array("EU", "Benelux"), "Europe", array("nld")),
'New Caledonia' => array(0, "FR", array("EU", "OIF"), "Oceania", array("fra")),
'New Zealand' => array(0, "NZ", array("Cwlth"), "Oceania", array("eng")),
'Nicaragua' => array(0, 0, 0, "NA", array("spa")),
'Niger' => array(0, 0, array("OIF"), "Africa", array("fra")),
'Nigeria' => array(0, 0, array("Cwlth"), "Africa", array("eng")),
'Niue' => array(0, "NZ", array("Cwlth"), "Oceania", array("eng")),
'Norfolk Island' => array(0, "AU", array("Cwlth"), "Oceania", array("eng")),
'Northern Mariana Is' => array(0, "US", array("USCA", "NAFTA"), "Oceania", array("eng")),
'Norway' => array(0, 0, array("EU"), "Europe", array()),
'Oman' => array(0, 0, array("Arab"), "NE", array("ara")),
'Pakistan' => array(0, 0, array("Cwlth"), "SAs", array("eng")),
'Palau Island' => array(0, 0, 0, "Oceania", array("eng")),
'Palestine' => array(0, 0, array("Arab"), "NE", array("ara")),
'Panama' => array(0, 0, 0, "NA", array("spa")),
'Papua New Guinea' => array(0, 0, array("Cwlth"), "Oceania", array("eng")),
'Paraguay' => array(0, 0, array("Mercosur"), "SA", array("spa")),
'Peru' => array(0,  0, array("CAN"), "SA",  array("spa")),
'Phillipines' => array(0, 0, 0, "Oceania", array("eng")),
'Pitcairn Island' => array(0, "UK", array("Cwlth", "EU"), "Caribbean", array("eng")),
'Poland' => array(0, 0, array("EU"), "Europe", array()),
'Portugal' => array(0, 0, array("EU"), "Europe", array("por")),
'Puerto Rico' => array(0, "US", array("USCA", "NAFTA"), "Caribbean", array("spa", "eng")),
'Qatar' => array(0, 0, array("Arab"), "NE", array("ara")),
'Reunion' => array(0, "FR", array("EU", "OIF"), "Africa", array("fra")),
'Romania' => array(0, 0, array("EU", "OIF"), "Europe", array()),
'Russia' => array(0, 0, array("CIS", "TSouz"), "Europe", array("rus")),
'Rwanda' => array(0, 0, array("Cwlth","OIF"), "Africa", array("fra")),
'St Barthelemy' => array(0, "FR", array("EU", "OIF"), "Caribbean", array("fra")),
'St Eustatius' => array(0, array("NL", "EU", "Caribbean", "America")),
'St Helena' => array(0, "UK", array("Cwlth", "EU"), "Caribbean", array("eng")),
'St Kitts-Nevis' => array(0, 0, array("Cwlth"), "Caribbean", array("eng")),
'St Lucia' => array(0, 0, array("Cwlth", "OIF"), "Caribbean", array("eng", "fra")),
'St Martin' => array(0, "FR", array("EU", "OIF"), "Caribbean", array("fra")),
'St Maarten' => array(0, array("NL", "EU", "Caribbean", "America")),
'St Pierre & Miquelon' => array(0, "FR", array("EU", "OIF"), "Caribbean", array("fra")),
'St Vincent & Grenadines' => array(0, 0, array("Cwlth"), "Caribbean", array("eng")),
'Samoa' => array(0, 0, array("Cwlth"), "Oceania", array("eng")),
'San Marino' => array(0, 0, array("EU"), "Europe", array()),
'Sao Tome & Principe' => array(0, 0, 0, "Africa", array("por")),
'Saudi Arabia' => array(0, 0, array("Arab"), "NE", array("ara")),
'Senegal' => array(0, 0, array("OIF"), "Africa", array("fra")),
'Serbia' => array(0, 0, 0, "Europe", array()),
'Seychelles' => array(0, 0, array("Cwlth"), "Africa", array("eng", "fra")),
'Sierra Leone' => array(0, 0, array("Cwlth"), "Africa", array("fra")),
'Singapore' => array(0, 0, array("Cwlth"), "SEA", array("eng", "cmn")),
'Slovakia' => array(0, 0, array("EU"), "Europe", array()),
'Slovenia' => array(0, 0, array("EU"), "Europe", array()),
'Solomon Islands' => array(0, 0, array("Cwlth"), "Oceania", array("eng")),
'Somalia' => array(0, 0, array("Arab"), "Africa", array("ara")),
'South Africa' => array(0, 0, array("Cwlth"), "Africa", array("eng", "nld")),
'South Sudan' => array(0, 0, 0, "Africa", array("eng")),
'Spain' => array(0, 0, array("EU"), "Europe", array("spa")),
'Sri Lanka' => array(0, 0, array("Cwlth"), "SAs", array()),
'Sudan' => array(0, 0, array("Arab"), "Africa", array("ara", "eng")),
'Suriname' => array(0, 0, 0, "SA", array("nld")),
'Swaziland' => array(0, 0, array("Cwlth"), "Africa", array("eng")),
'Sweden' => array(0, 0, array("EU"), "Europe", array()),
'Switzerland' => array(0, 0, 0, "Europe", array("deu", "fra")),
'Syria' => array(0, 0, array("Arab"), "NE", array("ara")),
'Taiwan' => array(0, 0, 0, "EAs", array("cmn")),
'Tajikistan' => array(0, 0, array("CIS"), "CAs", array()),
'Tanzania' => array(0, 0, array("Cwlth"), "Africa", array("eng")),
'Thailand' => array(0, 0, 0, "SEA", array()),
'Togo' => array(0, 0, array("OIF"), "Africa", array("fra")),
'Tokelau' => array(0, 0, array("Cwlth"), "Oceania", array("eng")),
'Tonga' => array(0, 0, array("Cwlth"), "Oceania", array("eng")),
'Trinidad & Tobago' => array(0, 0, array("Cwlth"), "Caribbean", array("eng")),
'Tunisia' => array(0, 0, array("Arab", "OIF"), "Africa", array("ara")),
'Turkey' => array(0, 0, 0, "NE", array()),
'Turkmenistan' => array(0, 0, array("CIS"), "CAs", array()),
'Turks & Caicos Is' => array(0, "UK", array("Cwlth", "EU"), "Caribbean", array("eng")),
'Tuvalu' => array(0, 0, array("Cwlth"), "Oceania", array("eng")),
'Uganda' => array(0, 0, array("Cwlth"), "Africa", array("eng")),
'Ukraine' => array(0, 0, array("CIS"), "Europe", array("rus")),
'United Arab Emirates' => array(0, 0, array("Arab"), "NE", array("ara")),
'Uruguay' => array(0, array("Mercosur", "SA", "America", "spa")),
'Uzbekistan' => array(0, 0, array("CIS"), "CAs", array()),
'Vanuatu' => array(0, 0, array("Cwlth"), "Oceania", array("eng", "fra")),
'Vatican City State' => array(0, 0, array("EU"), "Europe", array()),
'Venezuela' => array(0, 0, 0, "SA", array("spa")),
'Vietnam' => array(0, 0, array("OIF"), "SEA", array()),
'Virgin Islands (Brit)' => array(0, "UK", array("Cwlth", "EU"), "Caribbean", array("eng")),
'Virgin Islands (USA)' => array(0, "US", array("USCA", "NAFTA"), "Caribbean", array("eng")),
'Wallis & Futuna Is' => array(0, "FR", array("EU", "OIF"), "Oceania", array("fra")),
'Yemen' => array(0, 0, array("Arab"), "NE", array("ara")),
'Zaire' => array(0, 0, array("OIF"), "Africa", array("fra")),
'Zambia' => array(0, 0, array("Cwlth"), "Africa", array("eng")),
'Zimbabwe' => array(0, 0, 0, "Africa", array("eng")),
);

   // Weight, and proof if it is valid for ISCED education levels
   // array(weight, level0, level1, level2, level3, level4, level5, level6, level7, level8, bybranch, territory)
$edudatabases = array(
    'any' => array(0),
    'CVR_QS12' => array(0, false, false, false, false, false, true, true, true, true, true, "inter"),
    
/* Future databases
    'CVR_THE12' => array(0, false, false, false, false, false, true, true, true, true, true, "inter"),
    'CVR_ARWU12' => array(0, false, false, false, false, false, true, true, true, true, true, "inter"),
    'CVR_TIMSS08' => array(0, false, false, true, false, false, false, false, false, false, false, "inter"),
    'CVR_PISA09' => array(0, false, false, true, true, true, false, false, false, false, true, "inter"),
    'CVR_USNewsHS12' => array(0, false, false, false, true, true, false, false, false, false, true, "United States"),
    'CVR_USNewsU12' => array(0, false, false, false, false, false, true, true, false, false, false, "United States"),
    'CVR_USNewsG12' => array(0, false, false, false, false, false, false, false, true, true, false, "United States"),
    'CVR_UK12' => array(0, false, false, false, false, false, true, true, true, true, false, "United Kingdom"),
    'CVR_DEChe12' => array(0, false, false, false, false, false, true, true, true, true, false, "Germany"),
    'CVR_ESISI12' => array(0, false, false, false, false, false, true, true, true, true, false, "Spain"),
    'CVR_SCImago12' => array(0, false, false, false, false, false, false, false, true, true, false, "inter"),
 */
  );      

$credtypes = array(
'any' => 0,
    'major' => 0,  
    'basic' => 0,
    'chosen' => 0,
    'exam' => 0,
    'transfer' => 0,
  );  

$prestypes = array(
'any' => 0,
    // added blank "" in case it is not selected!
'' => 0,
    'Presence' => 0,    
    'Part-time' => 0,
    'Hybrid' => 0,
    'Distance' => 0,
    'Non-formal' => 0,
  );   

$hourtypes = array(
    "US" => 31,
    "ECTS" => 60,
    "UK" => 120,
    "Carnegie" => 5.75,
    "Japan" => 32,
    "China" => 35,
    "Latvia" => 40, 
    "Germany old" => 40,
    "Austria old" => 40,
    "Sweden old" => 40,
    "Finland old" => 40,
    "Estonia old" => 40,
    "Netherlands old" => 42,
    "Denmark old" => 1,
    "Norway old" => 20,
    "Spain old" => 75,
    "Sweden older" => 40,
    "Colombia" => 34,
    "El Salvador" => 32,
    "800" => 800,
    "900" => 900,
    "1000" => 1000,
    "1100" => 1100,
    "1200" => 1200,
    "700" => 700,
    "1300" => 1300,
    "1400" => 1400);

// ARRAY ( array(a, b, c) ) : 
// a => weight of grades (adjusting grade inflation)
// b => name of letter_to_grade function
// c => name of function for conversion grade -> score (scale 0-100)
// d => percentage that means PASS
$gradetypes = array(  
'1005' => array (90, 0, 100, 50),
'1006' => array (90, 0, 100, 60),
'1007' => array (90, 0, 100, 70),
'205' => array (90, 0, 20, 50),
'206' => array (90, 0, 20, 60),
'US4' => array (100,'US4','US4', 60),
'US5' => array (100,'US5','US5', 70),
'US9' => array (100, 'US9', 'US9', 70),
'US10' => array (100, 'US10', 'US10', 70),
'US42' => array (100,'US42','US42', 60),
'US52' => array (100,'US52','US52', 70),
'UK' => array (100,'UK','UK', 60),
'GCSE' => array (100,'GCSE', 'GCSE', 60),
'GCE' =>  array (100,'GCSE', 'GCSE', 60),
'ECTS' => array (100,'ECTS', 'UK', 60),
'IB' => array (100, 0, 'IB', 70),
'Canada' => array (100,'US4','US4', 60),
'Albania' => array (100, 0, 10, 50),
'Algeria10' => array (100, 0, 10, 50),
'Algeria20' => array (100, 0, 20, 50),
'Argentina3' => array (100, 0, 10, 40),
'Argentina2' => array (100, 0, 10, 50),
'Argentina70' => array (100, 0, 10, 60),
'Australia3' => array (100, 0, 7, 57),
'Australia4' => array (100, 0, 4, 25),
'Australia2' =>  array (100, 'US4', 'US4', 50),
'Australia6' => array (100, 0, 6, 33),
'Austria' => array (100, 0, 'Germany', 50),
'Bangladesh' => array (100, 'US5', 'US5', 60),
'Belgium' => array (100, 0, 20, 50),
'Bolivia' => array (100, 0, 70, 50),
'Bosnia3' =>  array (100, 0, 10, 60),
'Bosnia2' =>  array (100, 0, 5, 40),
'Brazil5' =>  array (100, 0, 10, 50),
'Brazil6' =>  array (100, 0, 10, 60),
'Brazil7' =>  array (100, 0, 10, 70),
'Bulgaria2' =>  array (100, 0, 6, 33),
'Bulgaria3' =>  array (100, 0, 6, 33),
'Chile' => array (100, 0, 7, 60),
'China'  => array (100, "China", 100, 60),
'Colombia5' => array (100, 0, 5, 65),
'Colombia10' => array (100, 0, 10, 65),
'CostaRica1' =>  array (100, 0, 100, 65),
'CostaRica3' =>  array (100, 0, 7, 70),
'Croatia2' => array (100, 0, 5, 40),
'Croatia3' => array (100, 0, 5, 40),
'Czech' => array (100, 'inv5', 5, 40),
'Denmark13' => array (100, 0, 13, 46),
'Denmark7' => array (100, 'Denmark', 'UK', 46),
'Ecuador' =>  array (100, 0, 20, 65),
'ElSalvador6' => array (100, 0, 10, 60),
'ElSalvador7' => array (100, 0, 10, 70),
'ElSalvadorD' => array (100, 'US4', 'US4', 60),
'Finland' =>  array (100, 0, 10, 50),
'France2' =>  array (100, 0, 10, 50),
'France3' => array (100, 0, 20, 50),
'Germany' => array (100, 0, 'Germany', 50),
'Greece3' => array (100, 0, 10, 50),
'Greece2' => array (100, 0, 20, 50),
'Guatemala' => array (100, 0, 100, 60),
'HongKong3' =>array (100, 'US4', 'US4', 60),
    // It seems that Hong Kong suffers from the UK grade inflation...
'HongKong2' => array (100, 'GCSE', 'GCSE', 60),
'Honduras' => array (100, 0, 100, 60),
'Hungary' => array (100, 0, 5, 40),
'Iceland100' => array (100, 0, 100, 50),
'Iceland10' => array (100, 0, 10, 50),
'Ireland2' => array (100, 'Ireland2', 100, 45),
'Ireland3' => array (100, 'Ireland3', 'UK', 60),
'Iran' => array (100, 0, 20, 50),
'Iraq' => array (100, 0, 100, 50),
'India100' =>  array (100, 0, 100, 40),
'India10' =>  array (100, 0, 10, 50),
'Indonesia3' => array (100, 'US4', 'US4', 60),
'Indonesia56' =>  array (100, 0, 100, 56),
'Indonesia70' =>  array (100, 0, 100, 70),
'Indonesia10' =>  array (100, 0, 10, 40),
'Israel10' =>  array (100, 0, 10, 55),
'Israel100' => array (100, 0, 100, 60),
'Italy3' => array (100, 0, 30, 60),
'Italy2' => array (100, 0, 10, 60),
'Jamaica' => array (100, 'US4', 'US4', 60),
'Japan6' => array (100, "Japan6", 100, 50),
'Japan4' => array (100, "Japan4", 100, 60),
'Korea' => array (100, 'US4', 'US4', 60),
'Kuwait' => array (100, 0, 'US4', 60),
'Latvia' => array (100, 0, 10, 50),
'Lebanon60' => array (100, 0, 100, 60),
'Lebanon70' => array (100, 0, 100, 70),
'Lebanon20' => array (100, 0, 10, 50),
'Lithuania' => array (100, 0, 10, 50),
'Luxembourg' => array (100, 0, 60, 50),
'Macedonia2' =>  array (100, 0, 5, 40),
'Macedonia3' => array (100, 0, 10, 60),
'Mexico60' => array (100, 0, 100, 60),
'Mexico70' => array (100, 0, 100, 70),
'Mexico80' => array (100, 0, 100, 80),
'Malaysia' => array (100, 'US4', 'US4', 60),
'Moldova' =>  array (100, 0, 10, 50),
'Netherlands' => array (100, 0, 10, 60),
'NewZealand' => array (100, 'US9', 'US9', 60),
'Nicaragua60' => array (100, 0, 100, 60),
'Nicaragua70' => array (100, 0, 100, 70),
'Norway3' => array (100, 0, "Germany", 50),
'Norway2' => array (100, 0, 6, 33),
'Panama' => array (100, 0, 5, 60),
'Pakistan' => array (100, 'Ireland2', 100, 50),
'Paraguay' => array (100, 0, 5, 60),
'Poland1' => array (100, 0, 'Poland1', 30),
'Poland3' => array (100, 0, 'Poland3', 60),
'Portugal2' => array (100, 0, 5, 60),
'Portugal3' => array (100, 0, 20, 48),
'Peru3' => array (100, 0, 20, 55),
'Peru11' => array (100, 0, 20, 65),
'Romania' => array (100, 0, 10, 50),
'Saudi' => array (100, 'US4', 'US4', 60),
'Serbia3' => array (100, 0, 10, 60),
'Slovakia' => array (100, 0, 10, 60),
'Slovenia3' => array (100, 0, 10, 60),
'Slovenia2' => array (100, 0, 5, 40),
'Russia' => array (100, 0, 'Russia', 50),
'Spain' => array (100, 0, 10, 50),
'Sweden3' => array (100, 0, 5, 40),
'SwedenECTS' => array (100, 'ECTS', 'UK', 50),
'Switzerland' => array (100, 0, 6, 66),
'Thailand' => array (100, 'US4', 'US4', 60),
'Tunisia10' => array (100, 0, 10, 50),
'Tunisia20' => array (100, 0, 20, 50),
'UAE' => array (100, 'US4', 'US4', 60),
'Ukraine' =>  array (100, 0, 12, 33),
'Uruguay6' => array (100, 0, 12, 50),
'Uruguay3' => array (100, 0, 12, 33),
'Uruguay100' => array (100, 0, 12, 25),
'Vietnam' => array (100, 0, 10, 20),
'Venezuela20' => array (100, 0, 20, 45),
'Venezuela100' => array (100, 0, 100, 50),
'Yugoslavia' => array (100, 0, 5, 40),
    );

    $sectors = array (
  '1' => array(0, "ISCE7", "soc"),
'11' => array(0, "ISCE7", "soc"),
'111' => array(0, "ISCE7", "soc"),
'1111' => array(0, "ISCE7", "soc"),
'1112' => array(0, "ISCE7", "soc"),
'1113' => array(0, "ISCE7", "soc"),
'1114' => array(0, "ISCE7", "soc"),
'112' => array(0, "ISCE7", "soc"),
'1120' => array(0, "ISCE7", "soc"),
'12' => array(0, "ISCE7", "soc"),
'121' => array(0, "ISCE7", "soc"),
'1211' => array(0, "ISCE7", "soc"),
'1212' => array(0, "ISCE7", "soc"),
'1213' => array(0, "ISCE7", "soc"),
'1219' => array(0, "ISCE7", "soc"),
'122' => array(0, "ISCE7", "soc"),
'1221' => array(0, "ISCE7", "soc"),
'1222' => array(0, "ISCE7", "soc"),
'1223' => array(0, "ISCE7", "soc"),
'13' => array(0, "ISCE7", "tech"),
'131' => array(0, "ISCE7", "bio"),
'1311' => array(0, "ISCE7", "bio"),
'1312' => array(0, "ISCE7", "bio"),
'132' => array(0, "ISCE7", "tech"),
'1321' => array(0, "ISCE7", "tech"),
'1322' => array(0, "ISCE7", "tech"),
'1323' => array(0, "ISCE7", "tech"),
'1324' => array(0, "ISCE7", "tech"),
'133' => array(0, "ISCE7", "tech"),
'1330' => array(0, "ISCE7", "tech"),
'134' => array(0, "ISCE7", "soc"),
'1341' => array(0, "ISCE7", "soc"),
'1342' => array(0, "ISCE7", "soc"),
'1343' => array(0, "ISCE7", "soc"),
'1344' => array(0, "ISCE7", "soc"),
'1345' => array(0, "ISCE7", "soc"),
'1346' => array(0, "ISCE7", "soc"),
'1349' => array(0, "ISCE7", "soc"),
'14' => array(0, "ISCE7", "soc"),
'141' => array(0, "ISCE7", "soc"),
'1411' => array(0, "ISCE7", "soc"),
'1412' => array(0, "ISCE7", "soc"),
'142' => array(0, "ISCE7", "soc"),
'1420' => array(0, "ISCE7", "soc"),
'143' => array(0, "ISCE7", "soc"),
'1431' => array(0, "ISCE7", "soc"),
'1439' => array(0, "ISCE7", "soc"),
'2' => array(0, "ISCE6", "soc"),
'21' => array(0, "ISCE6", "tech"),
'211' => array(0, "ISCE6", "sci"),
'2111' => array(0, "ISCE6", "sci"),
'2112' => array(0, "ISCE6", "sci"),
'2113' => array(0, "ISCE6", "sci"),
'2114' => array(0, "ISCE6", "sci"),
'212' => array(0, "ISCE6", "tech"),
'2120' => array(0, "ISCE6", "tech"),
'213' => array(0, "ISCE6", "bio"),
'2131' => array(0, "ISCE6", "bio"),
'2132' => array(0, "ISCE6", "bio"),
'2133' => array(0, "ISCE6", "bio"),
'214' => array(0, "ISCE6", "tech"),
'2141' => array(0, "ISCE6", "tech"),
'2142' => array(0, "ISCE6", "tech"),
'2143' => array(0, "ISCE6", "tech"),
'2144' => array(0, "ISCE6", "tech"),
'2145' => array(0, "ISCE6", "tech"),
'2146' => array(0, "ISCE6", "tech"),
'2149' => array(0, "ISCE6", "tech"),
'215' => array(0, "ISCE6", "tech"),
'2151' => array(0, "ISCE6", "tech"),
'2152' => array(0, "ISCE6", "tech"),
'2153' => array(0, "ISCE6", "tech"),
'216' => array(0, "ISCE6", "tech"),
'2161' => array(0, "ISCE6", "tech"),
'2162' => array(0, "ISCE6", "tech"),
'2163' => array(0, "ISCE6", "tech"),
'2164' => array(0, "ISCE6", "tech"),
'2165' => array(0, "ISCE6", "tech"),
'2166' => array(0, "ISCE6", "tech"),
'22' => array(0, "ISCE6", "bio"),
'221' => array(0, "ISCE6", "bio"),
'2211' => array(0, "ISCE6", "bio"),
'2212' => array(0, "ISCE6", "bio"),
'222' => array(0, "ISCE6", "bio"),
'2221' => array(0, "ISCE6", "bio"),
'2222' => array(0, "ISCE6", "bio"),
'223' => array(0, "ISCE6", "bio"),
'2230' => array(0, "ISCE6", "bio"),
'224' => array(0, "ISCE6", "bio"),
'2240' => array(0, "ISCE6", "bio"),
'225' => array(0, "ISCE6", "bio"),
'2250' => array(0, "ISCE6", "bio"),
'226' => array(0, "ISCE6", "bio"),
'2261' => array(0, "ISCE6", "bio"),
'2262' => array(0, "ISCE6", "bio"),
'2263' => array(0, "ISCE6", "bio"),
'2264' => array(0, "ISCE6", "bio"),
'2265' => array(0, "ISCE6", "bio"),
'2266' => array(0, "ISCE6", "bio"),
'2267' => array(0, "ISCE6", "bio"),
'2269' => array(0, "ISCE6", "bio"),
'23' => array(0, "ISCE6", "art"),
'231' => array(0, "ISCE6", "art"),
'2310' => array(0, "ISCE6", "art"),
'232' => array(0, "ISCE6", "art"),
'2320' => array(0, "ISCE6", "art"),
'233' => array(0, "ISCE6", "art"),
'2330' => array(0, "ISCE6", "art"),
'234' => array(0, "ISCE6", "art"),
'2341' => array(0, "ISCE6", "art"),
'2342' => array(0, "ISCE6", "art"),
'235' => array(0, "ISCE6", "art"),
'2351' => array(0, "ISCE6", "art"),
'2352' => array(0, "ISCE6", "art"),
'2353' => array(0, "ISCE6", "art"),
'2354' => array(0, "ISCE6", "art"),
'2355' => array(0, "ISCE6", "art"),
'2356' => array(0, "ISCE6", "art"),
'2359' => array(0, "ISCE6", "art"),
'24' => array(0, "ISCE6", "soc"),
'241' => array(0, "ISCE6", "soc"),
'2411' => array(0, "ISCE6", "soc"),
'2412' => array(0, "ISCE6", "soc"),
'2413' => array(0, "ISCE6", "soc"),
'242' => array(0, "ISCE6", "soc"),
'2421' => array(0, "ISCE6", "soc"),
'2422' => array(0, "ISCE6", "soc"),
'2423' => array(0, "ISCE6", "soc"),
'2424' => array(0, "ISCE6", "soc"),
'243' => array(0, "ISCE6", "soc"),
'2431' => array(0, "ISCE6", "soc"),
'2432' => array(0, "ISCE6", "soc"),
'2433' => array(0, "ISCE6", "soc"),
'2434' => array(0, "ISCE6", "soc"),
'25' => array(0, "ISCE6", "tech"),
'251' => array(0, "ISCE6", "tech"),
'2511' => array(0, "ISCE6", "tech"),
'2512' => array(0, "ISCE6", "tech"),
'2513' => array(0, "ISCE6", "tech"),
'2514' => array(0, "ISCE6", "tech"),
'2519' => array(0, "ISCE6", "tech"),
'252' => array(0, "ISCE6", "tech"),
'2521' => array(0, "ISCE6", "tech"),
'2522' => array(0, "ISCE6", "tech"),
'2523' => array(0, "ISCE6", "tech"),
'2529' => array(0, "ISCE6", "tech"),
'26' => array(0, "ISCE6", "soc"),
'261' => array(0, "ISCE6", "soc"),
'2611' => array(0, "ISCE6", "soc"),
'2612' => array(0, "ISCE6", "soc"),
'2619' => array(0, "ISCE6", "soc"),
'262' => array(0, "ISCE6", "soc"),
'2621' => array(0, "ISCE6", "soc"),
'2622' => array(0, "ISCE6", "soc"),
'263' => array(0, "ISCE6", "soc"),
'2631' => array(0, "ISCE6", "soc"),
'2632' => array(0, "ISCE6", "soc"),
'2633' => array(0, "ISCE6", "art"),
'2634' => array(0, "ISCE6", "soc"),
'2635' => array(0, "ISCE6", "soc"),
'2636' => array(0, "ISCE6", "art"),
'264' => array(0, "ISCE6", "art"),
'2641' => array(0, "ISCE6", "art"),
'2642' => array(0, "ISCE6", "art"),
'2643' => array(0, "ISCE6", "art"),
'265' => array(0, "ISCE6", "art"),
'2651' => array(0, "ISCE6", "art"),
'2652' => array(0, "ISCE6", "art"),
'2653' => array(0, "ISCE6", "art"),
'2654' => array(0, "ISCE6", "art"),
'2655' => array(0, "ISCE6", "art"),
'2656' => array(0, "ISCE6", "art"),
'2659' => array(0, "ISCE6", "art"),
'3' => array(0, "ISCE5", "tech"),
'31' => array(0, "ISCE5", "tech"),
'311' => array(0, "ISCE5", "tech"),
'3111' => array(0, "ISCE5", "sci"),
'3112' => array(0, "ISCE5", "tech"),
'3113' => array(0, "ISCE5", "tech"),
'3114' => array(0, "ISCE5", "tech"),
'3115' => array(0, "ISCE5", "tech"),
'3116' => array(0, "ISCE5", "tech"),
'3117' => array(0, "ISCE5", "tech"),
'3118' => array(0, "ISCE5", "tech"),
'3119' => array(0, "ISCE5", "tech"),
'312' => array(0, "ISCE5", "tech"),
'3121' => array(0, "ISCE5", "tech"),
'3122' => array(0, "ISCE5", "tech"),
'3123' => array(0, "ISCE5", "tech"),
'313' => array(0, "ISCE5", "tech"),
'3131' => array(0, "ISCE5", "tech"),
'3132' => array(0, "ISCE5", "tech"),
'3133' => array(0, "ISCE5", "tech"),
'3134' => array(0, "ISCE5", "tech"),
'3135' => array(0, "ISCE5", "tech"),
'3139' => array(0, "ISCE5", "tech"),
'314' => array(0, "ISCE5", "tech"),
'3141' => array(0, "ISCE5", "tech"),
'3142' => array(0, "ISCE5", "tech"),
'3143' => array(0, "ISCE5", "tech"),
'315' => array(0, "ISCE5", "tech"),
'3151' => array(0, "ISCE5", "tech"),
'3152' => array(0, "ISCE5", "tech"),
'3153' => array(0, "ISCE5", "tech"),
'3154' => array(0, "ISCE5", "tech"),
'3155' => array(0, "ISCE5", "tech"),
'32' => array(0, "ISCE5", "bio"),
'321' => array(0, "ISCE5", "bio"),
'3211' => array(0, "ISCE5", "bio"),
'3212' => array(0, "ISCE5", "bio"),
'3213' => array(0, "ISCE5", "bio"),
'3214' => array(0, "ISCE5", "bio"),
'322' => array(0, "ISCE5", "bio"),
'3221' => array(0, "ISCE5", "bio"),
'3222' => array(0, "ISCE5", "bio"),
'323' => array(0, "ISCE5", "bio"),
'3230' => array(0, "ISCE5", "bio"),
'324' => array(0, "ISCE5", "bio"),
'3240' => array(0, "ISCE5", "bio"),
'325' => array(0, "ISCE5", "bio"),
'3251' => array(0, "ISCE5", "bio"),
'3252' => array(0, "ISCE5", "bio"),
'3253' => array(0, "ISCE5", "bio"),
'3254' => array(0, "ISCE5", "bio"),
'3255' => array(0, "ISCE5", "bio"),
'3256' => array(0, "ISCE5", "bio"),
'3257' => array(0, "ISCE5", "bio"),
'3258' => array(0, "ISCE5", "bio"),
'3259' => array(0, "ISCE5", "bio"),
'33' => array(0, "ISCE5", "soc"),
'331' => array(0, "ISCE5", "soc"),
'3311' => array(0, "ISCE5", "soc"),
'3312' => array(0, "ISCE5", "soc"),
'3313' => array(0, "ISCE5", "soc"),
'3314' => array(0, "ISCE5", "soc"),
'3315' => array(0, "ISCE5", "soc"),
'332' => array(0, "ISCE5", "soc"),
'3321' => array(0, "ISCE5", "soc"),
'3322' => array(0, "ISCE5", "soc"),
'3323' => array(0, "ISCE5", "soc"),
'3324' => array(0, "ISCE5", "soc"),
'333' => array(0, "ISCE5", "soc"),
'3331' => array(0, "ISCE5", "soc"),
'3332' => array(0, "ISCE5", "soc"),
'3333' => array(0, "ISCE5", "soc"),
'3334' => array(0, "ISCE5", "soc"),
'3339' => array(0, "ISCE5", "soc"),
'334' => array(0, "ISCE5", "soc"),
'3341' => array(0, "ISCE5", "soc"),
'3342' => array(0, "ISCE5", "soc"),
'3343' => array(0, "ISCE5", "soc"),
'3344' => array(0, "ISCE5", "soc"),
'335' => array(0, "ISCE5", "soc"),
'3351' => array(0, "ISCE5", "soc"),
'3352' => array(0, "ISCE5", "soc"),
'3353' => array(0, "ISCE5", "soc"),
'3354' => array(0, "ISCE5", "soc"),
'3355' => array(0, "ISCE5", "soc"),
'3359' => array(0, "ISCE5", "soc"),
'34' => array(0, "ISCE5", "soc"),
'341' => array(0, "ISCE5", "soc"),
'3411' => array(0, "ISCE5", "soc"),
'3412' => array(0, "ISCE5", "soc"),
'3413' => array(0, "ISCE5", "soc"),
'342' => array(0, "ISCE5", "soc"),
'3421' => array(0, "ISCE5", "soc"),
'3422' => array(0, "ISCE5", "soc"),
'3423' => array(0, "ISCE5", "soc"),
'343' => array(0, "ISCE5", "art"),
'3431' => array(0, "ISCE5", "art"),
'3432' => array(0, "ISCE5", "art"),
'3433' => array(0, "ISCE5", "art"),
'3434' => array(0, "ISCE5", "art"),
'3435' => array(0, "ISCE5", "art"),
'35' => array(0, "ISCE5", "tech"),
'351' => array(0, "ISCE5", "tech"),
'3511' => array(0, "ISCE5", "tech"),
'3512' => array(0, "ISCE5", "tech"),
'3513' => array(0, "ISCE5", "tech"),
'3514' => array(0, "ISCE5", "tech"),
'352' => array(0, "ISCE5", "tech"),
'3521' => array(0, "ISCE5", "tech"),
'3522' => array(0, "ISCE5", "tech"),
'4' => array(0, "ISCE4", "gen"),
'41' => array(0, "ISCE4", "gen"),
'411' => array(0, "ISCE4", "gen"),
'4110' => array(0, "ISCE4", "gen"),
'412' => array(0, "ISCE4", "gen"),
'4120' => array(0, "ISCE4", "gen"),
'413' => array(0, "ISCE4", "gen"),
'4131' => array(0, "ISCE4", "gen"),
'4132' => array(0, "ISCE4", "gen"),
'42' => array(0, "ISCE4", "soc"),
'421' => array(0, "ISCE4", "soc"),
'4211' => array(0, "ISCE4", "soc"),
'4212' => array(0, "ISCE4", "soc"),
'4213' => array(0, "ISCE4", "soc"),
'4214' => array(0, "ISCE4", "soc"),
'422' => array(0, "ISCE4", "soc"),
'4221' => array(0, "ISCE4", "soc"),
'4222' => array(0, "ISCE4", "soc"),
'4223' => array(0, "ISCE4", "soc"),
'4224' => array(0, "ISCE4", "soc"),
'4225' => array(0, "ISCE4", "soc"),
'4226' => array(0, "ISCE4", "soc"),
'4227' => array(0, "ISCE4", "soc"),
'4229' => array(0, "ISCE4", "soc"),
'43' => array(0, "ISCE4", "soc"),
'431' => array(0, "ISCE4", "soc"),
'4311' => array(0, "ISCE4", "soc"),
'4312' => array(0, "ISCE4", "soc"),
'4313' => array(0, "ISCE4", "soc"),
'432' => array(0, "ISCE4", "soc"),
'4321' => array(0, "ISCE4", "soc"),
'4322' => array(0, "ISCE4", "soc"),
'4323' => array(0, "ISCE4", "soc"),
'44' => array(0, "ISCE4", "soc"),
'441' => array(0, "ISCE4", "soc"),
'4411' => array(0, "ISCE4", "soc"),
'4412' => array(0, "ISCE4", "soc"),
'4413' => array(0, "ISCE4", "tech"),
'4414' => array(0, "ISCE4", "soc"),
'4415' => array(0, "ISCE4", "soc"),
'4416' => array(0, "ISCE4", "soc"),
'4419' => array(0, "ISCE4", "gen"),
'5' => array(0, "ISCE3", "gen"),
'51' => array(0, "ISCE3", "gen"),
'511' => array(0, "ISCE3", "gen"),
'5111' => array(0, "ISCE3", "gen"),
'5112' => array(0, "ISCE3", "gen"),
'5113' => array(0, "ISCE3", "gen"),
'512' => array(0, "ISCE3", "gen"),
'5120' => array(0, "ISCE3", "gen"),
'513' => array(0, "ISCE3", "gen"),
'5131' => array(0, "ISCE3", "gen"),
'5132' => array(0, "ISCE3", "gen"),
'514' => array(0, "ISCE3", "gen"),
'5141' => array(0, "ISCE3", "gen"),
'5142' => array(0, "ISCE3", "gen"),
'515' => array(0, "ISCE3", "gen"),
'5151' => array(0, "ISCE3", "gen"),
'5152' => array(0, "ISCE3", "gen"),
'5153' => array(0, "ISCE3", "gen"),
'516' => array(0, "ISCE3", "gen"),
'5161' => array(0, "ISCE3", "gen"),
'5162' => array(0, "ISCE3", "gen"),
'5163' => array(0, "ISCE3", "gen"),
'5164' => array(0, "ISCE3", "gen"),
'5165' => array(0, "ISCE3", "gen"),
'5169' => array(0, "ISCE3", "gen"),
'52' => array(0, "ISCE3", "soc"),
'521' => array(0, "ISCE3", "soc"),
'5211' => array(0, "ISCE3", "soc"),
'5212' => array(0, "ISCE3", "soc"),
'522' => array(0, "ISCE3", "soc"),
'5221' => array(0, "ISCE3", "soc"),
'5222' => array(0, "ISCE3", "soc"),
'5223' => array(0, "ISCE3", "soc"),
'523' => array(0, "ISCE3", "soc"),
'5230' => array(0, "ISCE3", "soc"),
'524' => array(0, "ISCE3", "soc"),
'5241' => array(0, "ISCE3", "art"),
'5242' => array(0, "ISCE3", "soc"),
'5243' => array(0, "ISCE3", "soc"),
'5244' => array(0, "ISCE3", "soc"),
'5245' => array(0, "ISCE3", "soc"),
'5246' => array(0, "ISCE3", "soc"),
'5249' => array(0, "ISCE3", "soc"),
'53' => array(0, "ISCE4", "soc"),
'531' => array(0, "ISCE4", "soc"),
'5311' => array(0, "ISCE4", "soc"),
'5312' => array(0, "ISCE4", "soc"),
'532' => array(0, "ISCE4", "bio"),
'5321' => array(0, "ISCE4", "bio"),
'5322' => array(0, "ISCE4", "bio"),
'5329' => array(0, "ISCE4", "bio"),
'54' => array(0, "ISCE4", "soc"),
'541' => array(0, "ISCE4", "soc"),
'5411' => array(0, "ISCE4", "soc"),
'5412' => array(0, "ISCE4", "soc"),
'5413' => array(0, "ISCE4", "soc"),
'5414' => array(0, "ISCE4", "soc"),
'5419' => array(0, "ISCE4", "soc"),
'6' => array(0, "ISCE4", "bio"),
'61' => array(0, "ISCE4", "bio"),
'611' => array(0, "ISCE4", "bio"),
'6111' => array(0, "ISCE4", "bio"),
'6112' => array(0, "ISCE4", "bio"),
'6113' => array(0, "ISCE4", "bio"),
'6114' => array(0, "ISCE4", "bio"),
'612' => array(0, "ISCE4", "bio"),
'6121' => array(0, "ISCE4", "bio"),
'6122' => array(0, "ISCE4", "bio"),
'6123' => array(0, "ISCE4", "bio"),
'6129' => array(0, "ISCE4", "bio"),
'613' => array(0, "ISCE4", "bio"),
'6130' => array(0, "ISCE4", "bio"),
'62' => array(0, "ISCE4", "bio"),
'621' => array(0, "ISCE4", "bio"),
'6210' => array(0, "ISCE4", "bio"),
'622' => array(0, "ISCE4", "bio"),
'6221' => array(0, "ISCE4", "bio"),
'6222' => array(0, "ISCE4", "bio"),
'6223' => array(0, "ISCE4", "bio"),
'6224' => array(0, "ISCE4", "bio"),
'63' => array(0, "ISCE4", "bio"),
'631' => array(0, "ISCE4", "bio"),
'6310' => array(0, "ISCE4", "bio"),
'632' => array(0, "ISCE4", "bio"),
'6320' => array(0, "ISCE4", "bio"),
'633' => array(0, "ISCE4", "bio"),
'6330' => array(0, "ISCE4", "bio"),
'634' => array(0, "ISCE4", "bio"),
'6340' => array(0, "ISCE4", "bio"),
'7' => array(0, "ISCE4", "tech"),
'71' => array(0, "ISCE4", "tech"),
'711' => array(0, "ISCE4", "tech"),
'7111' => array(0, "ISCE4", "tech"),
'7112' => array(0, "ISCE4", "tech"),
'7113' => array(0, "ISCE4", "tech"),
'7114' => array(0, "ISCE4", "tech"),
'7115' => array(0, "ISCE4", "tech"),
'7119' => array(0, "ISCE4", "tech"),
'712' => array(0, "ISCE4", "tech"),
'7121' => array(0, "ISCE4", "tech"),
'7122' => array(0, "ISCE4", "tech"),
'7123' => array(0, "ISCE4", "tech"),
'7124' => array(0, "ISCE4", "tech"),
'7125' => array(0, "ISCE4", "tech"),
'7126' => array(0, "ISCE4", "tech"),
'7127' => array(0, "ISCE4", "tech"),
'713' => array(0, "ISCE4", "tech"),
'7131' => array(0, "ISCE4", "tech"),
'7132' => array(0, "ISCE4", "tech"),
'7133' => array(0, "ISCE4", "tech"),
'72' => array(0, "ISCE4", "tech"),
'721' => array(0, "ISCE4", "tech"),
'7211' => array(0, "ISCE4", "tech"),
'7212' => array(0, "ISCE4", "tech"),
'7213' => array(0, "ISCE4", "tech"),
'7214' => array(0, "ISCE4", "tech"),
'7215' => array(0, "ISCE4", "tech"),
'722' => array(0, "ISCE4", "tech"),
'7221' => array(0, "ISCE4", "tech"),
'7222' => array(0, "ISCE4", "tech"),
'7223' => array(0, "ISCE4", "tech"),
'7224' => array(0, "ISCE4", "tech"),
'723' => array(0, "ISCE4", "tech"),
'7231' => array(0, "ISCE4", "tech"),
'7232' => array(0, "ISCE4", "tech"),
'7233' => array(0, "ISCE4", "tech"),
'7234' => array(0, "ISCE4", "tech"),
'73' => array(0, "ISCE4", "tech"),
'731' => array(0, "ISCE4", "tech"),
'7311' => array(0, "ISCE4", "tech"),
'7312' => array(0, "ISCE4", "tech"),
'7313' => array(0, "ISCE4", "tech"),
'7314' => array(0, "ISCE4", "tech"),
'7315' => array(0, "ISCE4", "tech"),
'7316' => array(0, "ISCE4", "tech"),
'7317' => array(0, "ISCE4", "tech"),
'7318' => array(0, "ISCE4", "tech"),
'7319' => array(0, "ISCE4", "tech"),
'732' => array(0, "ISCE4", "tech"),
'7321' => array(0, "ISCE4", "tech"),
'7322' => array(0, "ISCE4", "tech"),
'7323' => array(0, "ISCE4", "tech"),
'74' => array(0, "ISCE4", "tech"),
'741' => array(0, "ISCE4", "tech"),
'7411' => array(0, "ISCE4", "tech"),
'7412' => array(0, "ISCE4", "tech"),
'7413' => array(0, "ISCE4", "tech"),
'742' => array(0, "ISCE4", "tech"),
'7421' => array(0, "ISCE4", "tech"),
'7422' => array(0, "ISCE4", "tech"),
'75' => array(0, "ISCE4", "tech"),
'751' => array(0, "ISCE4", "tech"),
'7511' => array(0, "ISCE4", "tech"),
'7512' => array(0, "ISCE4", "tech"),
'7513' => array(0, "ISCE4", "tech"),
'7514' => array(0, "ISCE4", "tech"),
'7515' => array(0, "ISCE4", "tech"),
'7516' => array(0, "ISCE4", "tech"),
'752' => array(0, "ISCE4", "tech"),
'7521' => array(0, "ISCE4", "tech"),
'7522' => array(0, "ISCE4", "tech"),
'7523' => array(0, "ISCE4", "tech"),
'753' => array(0, "ISCE4", "tech"),
'7531' => array(0, "ISCE4", "tech"),
'7532' => array(0, "ISCE4", "tech"),
'7533' => array(0, "ISCE4", "tech"),
'7534' => array(0, "ISCE4", "tech"),
'7535' => array(0, "ISCE4", "tech"),
'7536' => array(0, "ISCE4", "tech"),
'754' => array(0, "ISCE4", "tech"),
'7541' => array(0, "ISCE4", "tech"),
'7542' => array(0, "ISCE4", "tech"),
'7543' => array(0, "ISCE4", "tech"),
'7544' => array(0, "ISCE4", "tech"),
'7549' => array(0, "ISCE4", "tech"),
'8' => array(0, "ISCE4", "tech"),
'81' => array(0, "ISCE4", "tech"),
'811' => array(0, "ISCE4", "tech"),
'8111' => array(0, "ISCE4", "tech"),
'8112' => array(0, "ISCE4", "tech"),
'8113' => array(0, "ISCE4", "tech"),
'8114' => array(0, "ISCE4", "tech"),
'812' => array(0, "ISCE4", "tech"),
'8121' => array(0, "ISCE4", "tech"),
'8122' => array(0, "ISCE4", "tech"),
'813' => array(0, "ISCE4", "tech"),
'8131' => array(0, "ISCE4", "tech"),
'8132' => array(0, "ISCE4", "tech"),
'814' => array(0, "ISCE4", "tech"),
'8141' => array(0, "ISCE4", "tech"),
'8142' => array(0, "ISCE4", "tech"),
'8143' => array(0, "ISCE4", "tech"),
'815' => array(0, "ISCE4", "tech"),
'8151' => array(0, "ISCE4", "tech"),
'8152' => array(0, "ISCE4", "tech"),
'8153' => array(0, "ISCE4", "tech"),
'8154' => array(0, "ISCE4", "tech"),
'8155' => array(0, "ISCE4", "tech"),
'8156' => array(0, "ISCE4", "tech"),
'8157' => array(0, "ISCE4", "tech"),
'8159' => array(0, "ISCE4", "tech"),
'816' => array(0, "ISCE4", "tech"),
'8160' => array(0, "ISCE4", "tech"),
'817' => array(0, "ISCE4", "tech"),
'8171' => array(0, "ISCE4", "tech"),
'8172' => array(0, "ISCE4", "tech"),
'818' => array(0, "ISCE4", "tech"),
'8181' => array(0, "ISCE4", "tech"),
'8182' => array(0, "ISCE4", "tech"),
'8183' => array(0, "ISCE4", "tech"),
'8189' => array(0, "ISCE4", "tech"),
'82' => array(0, "ISCE4", "tech"),
'821' => array(0, "ISCE4", "tech"),
'8211' => array(0, "ISCE4", "tech"),
'8212' => array(0, "ISCE4", "tech"),
'8219' => array(0, "ISCE4", "tech"),
'83' => array(0, "ISCE4", "tech"),
'831' => array(0, "ISCE4", "tech"),
'8311' => array(0, "ISCE4", "tech"),
'8312' => array(0, "ISCE4", "tech"),
'832' => array(0, "ISCE4", "tech"),
'8321' => array(0, "ISCE4", "tech"),
'8322' => array(0, "ISCE4", "tech"),
'833' => array(0, "ISCE4", "tech"),
'8331' => array(0, "ISCE4", "tech"),
'8332' => array(0, "ISCE4", "tech"),
'834' => array(0, "ISCE4", "tech"),
'8341' => array(0, "ISCE4", "tech"),
'8342' => array(0, "ISCE4", "tech"),
'8343' => array(0, "ISCE4", "tech"),
'8344' => array(0, "ISCE4", "tech"),
'835' => array(0, "ISCE4", "tech"),
'8350' => array(0, "ISCE4", "tech"),
'9' => array(0, "ISCE2", "soc"),
'91' => array(0, "ISCE2", "soc"),
'911' => array(0, "ISCE2", "soc"),
'9111' => array(0, "ISCE2", "soc"),
'9112' => array(0, "ISCE2", "soc"),
'912' => array(0, "ISCE2", "soc"),
'9121' => array(0, "ISCE2", "soc"),
'9122' => array(0, "ISCE2", "soc"),
'9123' => array(0, "ISCE2", "soc"),
'9129' => array(0, "ISCE2", "soc"),
'92' => array(0, "ISCE2", "bio"),
'921' => array(0, "ISCE2", "bio"),
'9211' => array(0, "ISCE2", "bio"),
'9212' => array(0, "ISCE2", "bio"),
'9213' => array(0, "ISCE2", "bio"),
'9214' => array(0, "ISCE2", "bio"),
'9215' => array(0, "ISCE2", "bio"),
'9216' => array(0, "ISCE2", "bio"),
'93' => array(0, "ISCE2", "tech"),
'931' => array(0, "ISCE2", "tech"),
'9311' => array(0, "ISCE2", "tech"),
'9312' => array(0, "ISCE2", "tech"),
'9313' => array(0, "ISCE2", "tech"),
'932' => array(0, "ISCE2", "tech"),
'9321' => array(0, "ISCE2", "tech"),
'9329' => array(0, "ISCE2", "tech"),
'933' => array(0, "ISCE2", "tech"),
'9331' => array(0, "ISCE2", "tech"),
'9332' => array(0, "ISCE2", "tech"),
'9333' => array(0, "ISCE2", "tech"),
'9334' => array(0, "ISCE2", "tech"),
'94' => array(0, "ISCE2", "bio"),
'941' => array(0, "ISCE2", "bio"),
'9411' => array(0, "ISCE2", "bio"),
'9412' => array(0, "ISCE2", "bio"),
'95' => array(0, "ISCE2", "soc"),
'951' => array(0, "ISCE2", "soc"),
'9510' => array(0, "ISCE2", "soc"),
'952' => array(0, "ISCE2", "soc"),
'9520' => array(0, "ISCE2", "soc"),
'96' => array(0, "ISCE2", "tech"),
'961' => array(0, "ISCE2", "tech"),
'9611' => array(0, "ISCE2", "tech"),
'9612' => array(0, "ISCE2", "tech"),
'9613' => array(0, "ISCE2", "tech"),
'962' => array(0, "ISCE2", "tech"),
'9621' => array(0, "ISCE2", "tech"),
'9622' => array(0, "ISCE2", "tech"),
'9623' => array(0, "ISCE2", "tech"),
'9624' => array(0, "ISCE2", "tech"),
'9629' => array(0, "ISCE2", "tech"),
'0' => array(0, "ISCE2", "soc"),
'01' => array(0, "ISCE2", "soc"),
'011' => array(0, "ISCE2", "soc"),
'0110' => array(0, "ISCE2", "soc"),
'02' => array(0, "ISCE2", "soc"),
'021' => array(0, "ISCE2", "soc"),
'0210' => array(0, "ISCE2", "soc"),
'03' => array(0, "ISCE2", "soc"),
'031' => array(0, "ISCE2", "soc"),
'0310' => array(0, "ISCE2", "soc"),
);

    // Big Mac Index conversion rates - retrieved March 2012
      $currencies = array (
'USD'	=>	1,
'GBP'	=>	1.09,
'EUR'	=>	0.94,
'CNY'	=>	1.42,
'JPY'	=>	1.01,
'ARS'	=>	0.9,
'AUD'	=>	0.82,
'BRL'	=>	0.65,
'CAD'	=>	0.9,
'CLP'	=>	1.03,
'COP'	=>	0.92,
'CRC'	=>	1.04,
'CZK'	=>	1.18,
'DKK'	=>	0.72,
'EGP'	=>	1.39,
'HKD'	=>	1.49,
'HUF'	=>	1.37,
'INR'	=>	1.61,
'IDR'	=>	1.41,
'ILS'	=>	1.02,
'LVL'	=>	1.32,
'LTL'	=>	1.29,
'MYR'	=>	1.44,
'MXN'	=>	1.36,
'NZD'	=>	1.04,
'NOK'	=>	0.38,
'PKR'	=>	1.31,
'PEN'	=>	1.12,
'PHP'	=>	1.36,
'PLN'	=>	1.38,
'RUB'	=>	1.39,
'SAR'	=>	1.36,
'SGD'	=>	1.11,
'ZAR'	=>	1.42,
'KRW'	=>	1.24,
'LKR'	=>	1.39,
'SEK'	=>	0.59,
'CHF'	=>	0.38,
'TWD'	=>	1.40,
'THB'	=>	1.41,
'TRY'	=>	1.16,
'AED'	=>	1.22,
'UAH'	=>	1.5,
'UYU'	=>	0.9,
 );
  
      // array (weight, field, territory)
 $workdatabases = array(
    'any' => array(0),  
    'CVR_company_entity' => array(0, "any", "inter"),   
    'CVR_QS12' => array(0, "any", "inter"),  
    //'CVR_SCImago12' => array(0, "any", "inter"),  
    //'CVR_USNewsH12' => array(0, "any", "US"),  
  );
    
$industryclasses = array (
    'any' =>	array(0),
    'A' => array(0, 'A'),
'01' => array(0, 'A'),
'011' => array(0, 'A'),
'0111' => array(0, 'A'),
'0112' => array(0, 'A'),
'0113' => array(0, 'A'),
'0114' => array(0, 'A'),
'0115' => array(0, 'A'),
'0116' => array(0, 'A'),
'0119' => array(0, 'A'),
'012' => array(0, 'A'),
'0121' => array(0, 'A'),
'0122' => array(0, 'A'),
'0123' => array(0, 'A'),
'0124' => array(0, 'A'),
'0125' => array(0, 'A'),
'0126' => array(0, 'A'),
'0127' => array(0, 'A'),
'0128' => array(0, 'A'),
'0129' => array(0, 'A'),
'013' => array(0, 'A'),
'0130' => array(0, 'A'),
'014' => array(0, 'A'),
'0141' => array(0, 'A'),
'0142' => array(0, 'A'),
'0143' => array(0, 'A'),
'0144' => array(0, 'A'),
'0145' => array(0, 'A'),
'0146' => array(0, 'A'),
'0149' => array(0, 'A'),
'015' => array(0, 'A'),
'0150' => array(0, 'A'),
'016' => array(0, 'A'),
'0161' => array(0, 'A'),
'0162' => array(0, 'A'),
'0163' => array(0, 'A'),
'0164' => array(0, 'A'),
'017' => array(0, 'A'),
'0170' => array(0, 'A'),
'02' => array(0, 'A'),
'021' => array(0, 'A'),
'0210' => array(0, 'A'),
'022' => array(0, 'A'),
'0220' => array(0, 'A'),
'023' => array(0, 'A'),
'0230' => array(0, 'A'),
'024' => array(0, 'A'),
'0240' => array(0, 'A'),
'03' => array(0, 'A'),
'031' => array(0, 'A'),
'0311' => array(0, 'A'),
'0312' => array(0, 'A'),
'032' => array(0, 'A'),
'0321' => array(0, 'A'),
'0322' => array(0, 'A'),
'B' => array(0, 'B'),
'05' => array(0, 'B'),
'051' => array(0, 'B'),
'0510' => array(0, 'B'),
'052' => array(0, 'B'),
'0520' => array(0, 'B'),
'06' => array(0, 'B'),
'061' => array(0, 'B'),
'0610' => array(0, 'B'),
'062' => array(0, 'B'),
'0620' => array(0, 'B'),
'07' => array(0, 'B'),
'071' => array(0, 'B'),
'0710' => array(0, 'B'),
'072' => array(0, 'B'),
'0721' => array(0, 'B'),
'0729' => array(0, 'B'),
'08' => array(0, 'B'),
'081' => array(0, 'B'),
'0810' => array(0, 'B'),
'089' => array(0, 'B'),
'0891' => array(0, 'B'),
'0892' => array(0, 'B'),
'0893' => array(0, 'B'),
'0899' => array(0, 'B'),
'09' => array(0, 'B'),
'091' => array(0, 'B'),
'0910' => array(0, 'B'),
'099' => array(0, 'B'),
'0990' => array(0, 'B'),
'C' => array(0, 'C'),
'10' => array(0, 'C'),
'101' => array(0, 'C'),
'1010' => array(0, 'C'),
'102' => array(0, 'C'),
'1020' => array(0, 'C'),
'103' => array(0, 'C'),
'1030' => array(0, 'C'),
'104' => array(0, 'C'),
'1040' => array(0, 'C'),
'105' => array(0, 'C'),
'1050' => array(0, 'C'),
'106' => array(0, 'C'),
'1061' => array(0, 'C'),
'1062' => array(0, 'C'),
'107' => array(0, 'C'),
'1071' => array(0, 'C'),
'1072' => array(0, 'C'),
'1073' => array(0, 'C'),
'1074' => array(0, 'C'),
'1075' => array(0, 'C'),
'1079' => array(0, 'C'),
'108' => array(0, 'C'),
'1080' => array(0, 'C'),
'11' => array(0, 'C'),
'110' => array(0, 'C'),
'1101' => array(0, 'C'),
'1102' => array(0, 'C'),
'1103' => array(0, 'C'),
'1104' => array(0, 'C'),
'12' => array(0, 'C'),
'120' => array(0, 'C'),
'1200' => array(0, 'C'),
'13' => array(0, 'C'),
'131' => array(0, 'C'),
'1311' => array(0, 'C'),
'1312' => array(0, 'C'),
'1313' => array(0, 'C'),
'139' => array(0, 'C'),
'1391' => array(0, 'C'),
'1392' => array(0, 'C'),
'1393' => array(0, 'C'),
'1394' => array(0, 'C'),
'1399' => array(0, 'C'),
'14' => array(0, 'C'),
'141' => array(0, 'C'),
'1410' => array(0, 'C'),
'142' => array(0, 'C'),
'1420' => array(0, 'C'),
'143' => array(0, 'C'),
'1430' => array(0, 'C'),
'15' => array(0, 'C'),
'151' => array(0, 'C'),
'1511' => array(0, 'C'),
'1512' => array(0, 'C'),
'152' => array(0, 'C'),
'1520' => array(0, 'C'),
'16' => array(0, 'C'),
'161' => array(0, 'C'),
'1610' => array(0, 'C'),
'162' => array(0, 'C'),
'1621' => array(0, 'C'),
'1622' => array(0, 'C'),
'1623' => array(0, 'C'),
'1629' => array(0, 'C'),
'17' => array(0, 'C'),
'170' => array(0, 'C'),
'1701' => array(0, 'C'),
'1702' => array(0, 'C'),
'1709' => array(0, 'C'),
'18' => array(0, 'C'),
'181' => array(0, 'C'),
'1811' => array(0, 'C'),
'1812' => array(0, 'C'),
'182' => array(0, 'C'),
'1820' => array(0, 'C'),
'19' => array(0, 'C'),
'191' => array(0, 'C'),
'1910' => array(0, 'C'),
'192' => array(0, 'C'),
'1920' => array(0, 'C'),
'20' => array(0, 'C'),
'201' => array(0, 'C'),
'2011' => array(0, 'C'),
'2012' => array(0, 'C'),
'2013' => array(0, 'C'),
'202' => array(0, 'C'),
'2021' => array(0, 'C'),
'2022' => array(0, 'C'),
'2023' => array(0, 'C'),
'2029' => array(0, 'C'),
'203' => array(0, 'C'),
'2030' => array(0, 'C'),
'21' => array(0, 'C'),
'210' => array(0, 'C'),
'2100' => array(0, 'C'),
'22' => array(0, 'C'),
'221' => array(0, 'C'),
'2211' => array(0, 'C'),
'2219' => array(0, 'C'),
'222' => array(0, 'C'),
'2220' => array(0, 'C'),
'23' => array(0, 'C'),
'231' => array(0, 'C'),
'2310' => array(0, 'C'),
'239' => array(0, 'C'),
'2391' => array(0, 'C'),
'2392' => array(0, 'C'),
'2393' => array(0, 'C'),
'2394' => array(0, 'C'),
'2395' => array(0, 'C'),
'2396' => array(0, 'C'),
'2399' => array(0, 'C'),
'24' => array(0, 'C'),
'241' => array(0, 'C'),
'2410' => array(0, 'C'),
'242' => array(0, 'C'),
'2420' => array(0, 'C'),
'243' => array(0, 'C'),
'2431' => array(0, 'C'),
'2432' => array(0, 'C'),
'25' => array(0, 'C'),
'251' => array(0, 'C'),
'2511' => array(0, 'C'),
'2512' => array(0, 'C'),
'2513' => array(0, 'C'),
'252' => array(0, 'C'),
'2520' => array(0, 'C'),
'259' => array(0, 'C'),
'2591' => array(0, 'C'),
'2592' => array(0, 'C'),
'2593' => array(0, 'C'),
'2599' => array(0, 'C'),
'26' => array(0, 'C'),
'261' => array(0, 'C'),
'2610' => array(0, 'C'),
'262' => array(0, 'C'),
'2620' => array(0, 'C'),
'263' => array(0, 'C'),
'2630' => array(0, 'C'),
'264' => array(0, 'C'),
'2640' => array(0, 'C'),
'265' => array(0, 'C'),
'2651' => array(0, 'C'),
'2652' => array(0, 'C'),
'266' => array(0, 'C'),
'2660' => array(0, 'C'),
'267' => array(0, 'C'),
'2670' => array(0, 'C'),
'268' => array(0, 'C'),
'2680' => array(0, 'C'),
'27' => array(0, 'C'),
'271' => array(0, 'C'),
'2710' => array(0, 'C'),
'272' => array(0, 'C'),
'2720' => array(0, 'C'),
'273' => array(0, 'C'),
'2731' => array(0, 'C'),
'2732' => array(0, 'C'),
'2733' => array(0, 'C'),
'274' => array(0, 'C'),
'2740' => array(0, 'C'),
'275' => array(0, 'C'),
'2750' => array(0, 'C'),
'279' => array(0, 'C'),
'2790' => array(0, 'C'),
'28' => array(0, 'C'),
'281' => array(0, 'C'),
'2811' => array(0, 'C'),
'2812' => array(0, 'C'),
'2813' => array(0, 'C'),
'2814' => array(0, 'C'),
'2815' => array(0, 'C'),
'2816' => array(0, 'C'),
'2817' => array(0, 'C'),
'2818' => array(0, 'C'),
'2819' => array(0, 'C'),
'282' => array(0, 'C'),
'2821' => array(0, 'C'),
'2822' => array(0, 'C'),
'2823' => array(0, 'C'),
'2824' => array(0, 'C'),
'2825' => array(0, 'C'),
'2826' => array(0, 'C'),
'2829' => array(0, 'C'),
'29' => array(0, 'C'),
'291' => array(0, 'C'),
'2910' => array(0, 'C'),
'292' => array(0, 'C'),
'2920' => array(0, 'C'),
'293' => array(0, 'C'),
'2930' => array(0, 'C'),
'30' => array(0, 'C'),
'301' => array(0, 'C'),
'3011' => array(0, 'C'),
'3012' => array(0, 'C'),
'302' => array(0, 'C'),
'3020' => array(0, 'C'),
'303' => array(0, 'C'),
'3030' => array(0, 'C'),
'304' => array(0, 'C'),
'3040' => array(0, 'C'),
'309' => array(0, 'C'),
'3091' => array(0, 'C'),
'3092' => array(0, 'C'),
'3099' => array(0, 'C'),
'31' => array(0, 'C'),
'310' => array(0, 'C'),
'3100' => array(0, 'C'),
'32' => array(0, 'C'),
'321' => array(0, 'C'),
'3211' => array(0, 'C'),
'3212' => array(0, 'C'),
'322' => array(0, 'C'),
'3220' => array(0, 'C'),
'323' => array(0, 'C'),
'3230' => array(0, 'C'),
'324' => array(0, 'C'),
'3240' => array(0, 'C'),
'325' => array(0, 'C'),
'3250' => array(0, 'C'),
'329' => array(0, 'C'),
'3290' => array(0, 'C'),
'33' => array(0, 'C'),
'331' => array(0, 'C'),
'3311' => array(0, 'C'),
'3312' => array(0, 'C'),
'3313' => array(0, 'C'),
'3314' => array(0, 'C'),
'3315' => array(0, 'C'),
'3319' => array(0, 'C'),
'332' => array(0, 'C'),
'3320' => array(0, 'C'),
'D' => array(0, 'D'),
'35' => array(0, 'D'),
'351' => array(0, 'D'),
'3510' => array(0, 'D'),
'352' => array(0, 'D'),
'3520' => array(0, 'D'),
'353' => array(0, 'D'),
'3530' => array(0, 'D'),
'E' => array(0, 'E'),
'36' => array(0, 'E'),
'360' => array(0, 'E'),
'3600' => array(0, 'E'),
'37' => array(0, 'E'),
'370' => array(0, 'E'),
'3700' => array(0, 'E'),
'38' => array(0, 'E'),
'381' => array(0, 'E'),
'3811' => array(0, 'E'),
'3812' => array(0, 'E'),
'382' => array(0, 'E'),
'3821' => array(0, 'E'),
'3822' => array(0, 'E'),
'383' => array(0, 'E'),
'3830' => array(0, 'E'),
'39' => array(0, 'E'),
'390' => array(0, 'E'),
'3900' => array(0, 'E'),
'F' => array(0, 'F'),
'41' => array(0, 'F'),
'410' => array(0, 'F'),
'4100' => array(0, 'F'),
'42' => array(0, 'F'),
'421' => array(0, 'F'),
'4210' => array(0, 'F'),
'422' => array(0, 'F'),
'4220' => array(0, 'F'),
'429' => array(0, 'F'),
'4290' => array(0, 'F'),
'43' => array(0, 'F'),
'431' => array(0, 'F'),
'4311' => array(0, 'F'),
'4312' => array(0, 'F'),
'432' => array(0, 'F'),
'4321' => array(0, 'F'),
'4322' => array(0, 'F'),
'4329' => array(0, 'F'),
'433' => array(0, 'F'),
'4330' => array(0, 'F'),
'439' => array(0, 'F'),
'4390' => array(0, 'F'),
'G' => array(0, 'G'),
'45' => array(0, 'G'),
'451' => array(0, 'G'),
'4510' => array(0, 'G'),
'452' => array(0, 'G'),
'4520' => array(0, 'G'),
'453' => array(0, 'G'),
'4530' => array(0, 'G'),
'454' => array(0, 'G'),
'4540' => array(0, 'G'),
'46' => array(0, 'G'),
'461' => array(0, 'G'),
'4610' => array(0, 'G'),
'462' => array(0, 'G'),
'4620' => array(0, 'G'),
'463' => array(0, 'G'),
'4630' => array(0, 'G'),
'464' => array(0, 'G'),
'4641' => array(0, 'G'),
'4649' => array(0, 'G'),
'465' => array(0, 'G'),
'4651' => array(0, 'G'),
'4652' => array(0, 'G'),
'4653' => array(0, 'G'),
'4659' => array(0, 'G'),
'466' => array(0, 'G'),
'4661' => array(0, 'G'),
'4662' => array(0, 'G'),
'4663' => array(0, 'G'),
'4669' => array(0, 'G'),
'469' => array(0, 'G'),
'4690' => array(0, 'G'),
'47' => array(0, 'G'),
'471' => array(0, 'G'),
'4711' => array(0, 'G'),
'4719' => array(0, 'G'),
'472' => array(0, 'G'),
'4721' => array(0, 'G'),
'4722' => array(0, 'G'),
'4723' => array(0, 'G'),
'473' => array(0, 'G'),
'4730' => array(0, 'G'),
'474' => array(0, 'G'),
'4741' => array(0, 'G'),
'4742' => array(0, 'G'),
'475' => array(0, 'G'),
'4751' => array(0, 'G'),
'4752' => array(0, 'G'),
'4753' => array(0, 'G'),
'4759' => array(0, 'G'),
'476' => array(0, 'G'),
'4761' => array(0, 'G'),
'4762' => array(0, 'G'),
'4763' => array(0, 'G'),
'4764' => array(0, 'G'),
'477' => array(0, 'G'),
'4771' => array(0, 'G'),
'4772' => array(0, 'G'),
'4773' => array(0, 'G'),
'4774' => array(0, 'G'),
'478' => array(0, 'G'),
'4781' => array(0, 'G'),
'4782' => array(0, 'G'),
'4789' => array(0, 'G'),
'479' => array(0, 'G'),
'4791' => array(0, 'G'),
'4799' => array(0, 'G'),
'H' => array(0, 'H'),
'49' => array(0, 'H'),
'491' => array(0, 'H'),
'4911' => array(0, 'H'),
'4912' => array(0, 'H'),
'492' => array(0, 'H'),
'4921' => array(0, 'H'),
'4922' => array(0, 'H'),
'4923' => array(0, 'H'),
'493' => array(0, 'H'),
'4930' => array(0, 'H'),
'50' => array(0, 'H'),
'501' => array(0, 'H'),
'5011' => array(0, 'H'),
'5012' => array(0, 'H'),
'502' => array(0, 'H'),
'5021' => array(0, 'H'),
'5022' => array(0, 'H'),
'51' => array(0, 'H'),
'511' => array(0, 'H'),
'5110' => array(0, 'H'),
'512' => array(0, 'H'),
'5120' => array(0, 'H'),
'52' => array(0, 'H'),
'521' => array(0, 'H'),
'5210' => array(0, 'H'),
'522' => array(0, 'H'),
'5221' => array(0, 'H'),
'5222' => array(0, 'H'),
'5223' => array(0, 'H'),
'5224' => array(0, 'H'),
'5229' => array(0, 'H'),
'53' => array(0, 'H'),
'531' => array(0, 'H'),
'5310' => array(0, 'H'),
'532' => array(0, 'H'),
'5320' => array(0, 'H'),
'I' => array(0, 'I'),
'55' => array(0, 'I'),
'551' => array(0, 'I'),
'5510' => array(0, 'I'),
'552' => array(0, 'I'),
'5520' => array(0, 'I'),
'559' => array(0, 'I'),
'5590' => array(0, 'I'),
'56' => array(0, 'I'),
'561' => array(0, 'I'),
'5610' => array(0, 'I'),
'562' => array(0, 'I'),
'5621' => array(0, 'I'),
'5629' => array(0, 'I'),
'563' => array(0, 'I'),
'5630' => array(0, 'I'),
'J' => array(0, 'J'),
'58' => array(0, 'J'),
'581' => array(0, 'J'),
'5811' => array(0, 'J'),
'5812' => array(0, 'J'),
'5813' => array(0, 'J'),
'5819' => array(0, 'J'),
'582' => array(0, 'J'),
'5820' => array(0, 'J'),
'59' => array(0, 'J'),
'591' => array(0, 'J'),
'5911' => array(0, 'J'),
'5912' => array(0, 'J'),
'5913' => array(0, 'J'),
'5914' => array(0, 'J'),
'592' => array(0, 'J'),
'5920' => array(0, 'J'),
'60' => array(0, 'J'),
'601' => array(0, 'J'),
'6010' => array(0, 'J'),
'602' => array(0, 'J'),
'6020' => array(0, 'J'),
'61' => array(0, 'J'),
'611' => array(0, 'J'),
'6110' => array(0, 'J'),
'612' => array(0, 'J'),
'6120' => array(0, 'J'),
'613' => array(0, 'J'),
'6130' => array(0, 'J'),
'619' => array(0, 'J'),
'6190' => array(0, 'J'),
'62' => array(0, 'J'),
'620' => array(0, 'J'),
'6201' => array(0, 'J'),
'6202' => array(0, 'J'),
'6209' => array(0, 'J'),
'63' => array(0, 'J'),
'631' => array(0, 'J'),
'6311' => array(0, 'J'),
'6312' => array(0, 'J'),
'639' => array(0, 'J'),
'6391' => array(0, 'J'),
'6399' => array(0, 'J'),
'K' => array(0, 'K'),
'64' => array(0, 'K'),
'641' => array(0, 'K'),
'6411' => array(0, 'K'),
'6419' => array(0, 'K'),
'642' => array(0, 'K'),
'6420' => array(0, 'K'),
'643' => array(0, 'K'),
'6430' => array(0, 'K'),
'649' => array(0, 'K'),
'6491' => array(0, 'K'),
'6492' => array(0, 'K'),
'6499' => array(0, 'K'),
'65' => array(0, 'K'),
'651' => array(0, 'K'),
'6511' => array(0, 'K'),
'6512' => array(0, 'K'),
'652' => array(0, 'K'),
'6520' => array(0, 'K'),
'653' => array(0, 'K'),
'6530' => array(0, 'K'),
'66' => array(0, 'K'),
'661' => array(0, 'K'),
'6611' => array(0, 'K'),
'6612' => array(0, 'K'),
'6619' => array(0, 'K'),
'662' => array(0, 'K'),
'6621' => array(0, 'K'),
'6622' => array(0, 'K'),
'6629' => array(0, 'K'),
'663' => array(0, 'K'),
'6630' => array(0, 'K'),
'L' => array(0, 'L'),
'68' => array(0, 'L'),
'681' => array(0, 'L'),
'6810' => array(0, 'L'),
'682' => array(0, 'L'),
'6820' => array(0, 'L'),
'M' => array(0, 'M'),
'69' => array(0, 'M'),
'691' => array(0, 'M'),
'6910' => array(0, 'M'),
'692' => array(0, 'M'),
'6920' => array(0, 'M'),
'70' => array(0, 'M'),
'701' => array(0, 'M'),
'7010' => array(0, 'M'),
'702' => array(0, 'M'),
'7020' => array(0, 'M'),
'71' => array(0, 'M'),
'711' => array(0, 'M'),
'7110' => array(0, 'M'),
'712' => array(0, 'M'),
'7120' => array(0, 'M'),
'72' => array(0, 'M'),
'721' => array(0, 'M'),
'7210' => array(0, 'M'),
'722' => array(0, 'M'),
'7220' => array(0, 'M'),
'73' => array(0, 'M'),
'731' => array(0, 'M'),
'7310' => array(0, 'M'),
'732' => array(0, 'M'),
'7320' => array(0, 'M'),
'74' => array(0, 'M'),
'741' => array(0, 'M'),
'7410' => array(0, 'M'),
'742' => array(0, 'M'),
'7420' => array(0, 'M'),
'749' => array(0, 'M'),
'7490' => array(0, 'M'),
'75' => array(0, 'M'),
'750' => array(0, 'M'),
'7500' => array(0, 'M'),
'N' => array(0, 'N'),
'77' => array(0, 'N'),
'771' => array(0, 'N'),
'7710' => array(0, 'N'),
'772' => array(0, 'N'),
'7721' => array(0, 'N'),
'7722' => array(0, 'N'),
'7729' => array(0, 'N'),
'773' => array(0, 'N'),
'7730' => array(0, 'N'),
'774' => array(0, 'N'),
'7740' => array(0, 'N'),
'78' => array(0, 'N'),
'781' => array(0, 'N'),
'7810' => array(0, 'N'),
'782' => array(0, 'N'),
'7820' => array(0, 'N'),
'783' => array(0, 'N'),
'7830' => array(0, 'N'),
'79' => array(0, 'N'),
'791' => array(0, 'N'),
'7911' => array(0, 'N'),
'7912' => array(0, 'N'),
'799' => array(0, 'N'),
'7990' => array(0, 'N'),
'80' => array(0, 'N'),
'801' => array(0, 'N'),
'8010' => array(0, 'N'),
'802' => array(0, 'N'),
'8020' => array(0, 'N'),
'803' => array(0, 'N'),
'8030' => array(0, 'N'),
'81' => array(0, 'N'),
'811' => array(0, 'N'),
'8110' => array(0, 'N'),
'812' => array(0, 'N'),
'8121' => array(0, 'N'),
'8129' => array(0, 'N'),
'813' => array(0, 'N'),
'8130' => array(0, 'N'),
'82' => array(0, 'N'),
'821' => array(0, 'N'),
'8211' => array(0, 'N'),
'8219' => array(0, 'N'),
'822' => array(0, 'N'),
'8220' => array(0, 'N'),
'823' => array(0, 'N'),
'8230' => array(0, 'N'),
'829' => array(0, 'N'),
'8291' => array(0, 'N'),
'8292' => array(0, 'N'),
'8299' => array(0, 'N'),
'O' => array(0, 'O'),
'84' => array(0, 'O'),
'841' => array(0, 'O'),
'8411' => array(0, 'O'),
'8412' => array(0, 'O'),
'8413' => array(0, 'O'),
'842' => array(0, 'O'),
'8421' => array(0, 'O'),
'8422' => array(0, 'O'),
'8423' => array(0, 'O'),
'843' => array(0, 'O'),
'8430' => array(0, 'O'),
'P' => array(0, 'P'),
'85' => array(0, 'P'),
'851' => array(0, 'P'),
'8510' => array(0, 'P'),
'852' => array(0, 'P'),
'8521' => array(0, 'P'),
'8522' => array(0, 'P'),
'853' => array(0, 'P'),
'8530' => array(0, 'P'),
'854' => array(0, 'P'),
'8541' => array(0, 'P'),
'8542' => array(0, 'P'),
'8549' => array(0, 'P'),
'855' => array(0, 'P'),
'8550' => array(0, 'P'),
'Q' => array(0, 'Q'),
'86' => array(0, 'Q'),
'861' => array(0, 'Q'),
'8610' => array(0, 'Q'),
'862' => array(0, 'Q'),
'8620' => array(0, 'Q'),
'869' => array(0, 'Q'),
'8690' => array(0, 'Q'),
'87' => array(0, 'Q'),
'871' => array(0, 'Q'),
'8710' => array(0, 'Q'),
'872' => array(0, 'Q'),
'8720' => array(0, 'Q'),
'873' => array(0, 'Q'),
'8730' => array(0, 'Q'),
'879' => array(0, 'Q'),
'8790' => array(0, 'Q'),
'88' => array(0, 'Q'),
'881' => array(0, 'Q'),
'8810' => array(0, 'Q'),
'889' => array(0, 'Q'),
'8890' => array(0, 'Q'),
'R' => array(0, 'R'),
'90' => array(0, 'R'),
'900' => array(0, 'R'),
'9000' => array(0, 'R'),
'91' => array(0, 'R'),
'910' => array(0, 'R'),
'9101' => array(0, 'R'),
'9102' => array(0, 'R'),
'9103' => array(0, 'R'),
'92' => array(0, 'R'),
'920' => array(0, 'R'),
'9200' => array(0, 'R'),
'93' => array(0, 'R'),
'931' => array(0, 'R'),
'9311' => array(0, 'R'),
'9312' => array(0, 'R'),
'9319' => array(0, 'R'),
'932' => array(0, 'R'),
'9321' => array(0, 'R'),
'9329' => array(0, 'R'),
'S' => array(0, 'S'),
'94' => array(0, 'S'),
'941' => array(0, 'S'),
'9411' => array(0, 'S'),
'9412' => array(0, 'S'),
'942' => array(0, 'S'),
'9420' => array(0, 'S'),
'949' => array(0, 'S'),
'9491' => array(0, 'S'),
'9492' => array(0, 'S'),
'9499' => array(0, 'S'),
'95' => array(0, 'S'),
'951' => array(0, 'S'),
'9511' => array(0, 'S'),
'9512' => array(0, 'S'),
'952' => array(0, 'S'),
'9521' => array(0, 'S'),
'9522' => array(0, 'S'),
'9523' => array(0, 'S'),
'9524' => array(0, 'S'),
'9529' => array(0, 'S'),
'96' => array(0, 'S'),
'960' => array(0, 'S'),
'9601' => array(0, 'S'),
'9602' => array(0, 'S'),
'9603' => array(0, 'S'),
'9609' => array(0, 'S'),
'T' => array(0, 'T'),
'97' => array(0, 'T'),
'970' => array(0, 'T'),
'9700' => array(0, 'T'),
'98' => array(0, 'T'),
'981' => array(0, 'T'),
'9810' => array(0, 'T'),
'982' => array(0, 'T'),
'9820' => array(0, 'T'),
'U' => array(0, 'U'),
'99' => array(0, 'U'),
'990' => array(0, 'U'),
'9900' => array(0, 'U'),
);

$languages = array (
"abk" => array (0, "Northwest Caucasian","Abazgi","",""),
"aar" => array (0, "Afro-Asiatic","Cushitic","East",""),
"afr" => array (0, "Indo-European","Germanic","West","Dutch"),
"aka" => array (0, "Niger–Congo","Atlantic-Congo","Kwa","Tano"),
"sqi" => array (0, "Indo-European","","",""),
"gsw" => array (0, "Indo-European","Germanic","West","Ober"),
"amh" => array (0, "Afro-Asiatic","Semitic","South","West"),
"ara" => array (0, "Afro-Asiatic","Semitic","Central","Arabic"),
"arg" => array (0, "Indo-European","Romance","Iberian",""),
"hye" => array (0, "Indo-European","","",""),
"asm" => array (0, "Indo-European","Indo-Aryan","East",""),
"ava" => array (0, "Northeast Caucasian","Avar-Indic","",""),
"ave" => array (0, "Indo-European","Iranian","East","death"),
"aym" => array (0, "Aymaran","","",""),
"aze" => array (0, "Turkic","Oghuz","",""),
"bam" => array (0, "Niger–Congo","Mande","West","Central"),
"bak" => array (0, "Turkic","Kipchak","",""),
"eus" => array (0, "Language isolate","","",""),
"bel" => array (0, "Indo-European","Slavic","East",""),
"ben" => array (0, "Indo-European","Indo-Aryan","East",""),
"bih" => array (0, "Indo-European","Indo-Aryan","East",""),
"bis" => array (0, "Creole","","","eng"),
"bjn" => array (0, "Austronesian","Malayo-Polynesian","Nuclear","Malayo-Sumbawan"),
"bos" => array (0, "Indo-European","Slavic","South","Serbocroate"),
"bre" => array (0, "Indo-European","Celtic","Insular","Brythonic"),
"bul" => array (0, "Indo-European","Slavic","South","Bulgarian"),
"mya" => array (0, "Sino-Tibetan","Tibeto-Burman","Lolo-Burmese","Burmese"),
"cat" => array (0, "Indo-European","Romance","Gallo-Iberian","Occitano-Romance"),
"cha" => array (0, "Austronesian","Malayo-Polynesian","Nuclear","Sunda-Sulawesi"),
"che" => array (0, "Northeast Caucasian","Nakh","Vainakh",""),
"nya" => array (0, "Niger–Congo","Atlantic-Congo","Benue-Congo","Bantu"),
"cmn" => array (0, "Sino-Tibetan","Sinitic","North-Central","Mandarin"),
"cdo" => array (0, "Sino-Tibetan","Sinitic","South","Min"),
"cjy" => array (0, "Sino-Tibetan","Sinitic","North-Central","Mandarin"),
"cpx" => array (0, "Sino-Tibetan","Sinitic","South","Min"),
"czh" => array (0, "Sino-Tibetan","Sinitic","North-Central","Mandarin"),
"czo" => array (0, "Sino-Tibetan","Sinitic","South","Min"),
"gan" => array (0, "Sino-Tibetan","Sinitic","North-Central",""),
"hak" => array (0, "Sino-Tibetan","Sinitic","South",""),
"hsn" => array (0, "Sino-Tibetan","Sinitic","North-Central",""),
"mnp" => array (0, "Sino-Tibetan","Sinitic","South","Min"),
"nan" => array (0, "Sino-Tibetan","Sinitic","South","Min"),
"wuu" => array (0, "Sino-Tibetan","Sinitic","South",""),
"yue" => array (0, "Sino-Tibetan","Sinitic","South",""),
"chv" => array (0, "Turkic","Oghur","",""),
"cor" => array (0, "Indo-European","Celtic","Insular","Brythonic"),
"cos" => array (0, "Indo-European","Romance","Italo-Dalmatian","Tuscan"),
"cre" => array (0, "Algic","Algonquian","",""),
"hrv" => array (0, "Indo-European","Slavic","South","Serbocroate"),
"ces" => array (0, "Indo-European","Slavic","West","Czechoslovak"),
"dan" => array (0, "Indo-European","Germanic","North","East"),
"day" => array (0, "Austronesian","Malayo-Polynesian","Indo-Melanesian",""),
"div" => array (0, "Indo-European","Indo-Aryan","South","Insular"),
"nld" => array (0, "Indo-European","Germanic","West","Dutch"),
"dzo" => array (0, "Sino-Tibetan","Tibeto-Burman","Tibetan",""),
"eng" => array (0, "Indo-European","Germanic","West","Anglo-Frisian"),
"epo" => array (0, "Constructed","","",""),
"est" => array (0, "Uralic","Finnic","",""),
"ewe" => array (0, "Niger–Congo","Atlantic-Congo","Volta-Niger",""),
"fao" => array (0, "Indo-European","Germanic","North","West"),
"fij" => array (0, "Austronesian","Malayo-Polynesian","Oceanic","Central Pacific"),
"fin" => array (0, "Uralic","Finnic","",""),
"fra" => array (0, "Indo-European","Romance","Gallo-Iberian","Gallo-Rhaetian"),
"ful" => array (0, "Niger–Congo","Atlantic-Congo","Senegambian",""),
"glg" => array (0, "Indo-European","Romance","Gallo-Iberian","West Iberian"),
"kat" => array (0, "South Caucasian","Karto-Zan","",""),
"deu" => array (0, "Indo-European","Germanic","West","Ober"),
"ell" => array (0, "Indo-European","Greek","",""),
"grn" => array (0, "Tupian","Tupí-Guaraní","",""),
"guj" => array (0, "Indo-European","Indo-Aryan","Western",""),
"hat" => array (0, "Creole","","","fra"),
"hau" => array (0, "Afro-Asiatic","Chadic","West",""),
"heb" => array (0, "Afro-Asiatic","Semitic","Central","Northwest"),
"her" => array (0, "Niger–Congo","Atlantic-Congo","Benue-Congo","Bantu"),
"hin" => array (0, "Indo-European","Indo-Aryan","Central","Western"),
"hmo" => array (0, "Austronesian","Malayo-Polynesian","Oceanic","West"),
"hun" => array (0, "Uralic","Ugric","",""),
"ina" => array (0, "Constructed","","",""),
"ind" => array (0, "Austronesian","Malayo-Polynesian","Nuclear","Sunda-Sulawesi"),
"ile" => array (0, "Constructed","","",""),
"gle" => array (0, "Indo-European","Celtic","Insular","Goidelic"),
"ibo" => array (0, "Niger–Congo","Atlantic-Congo","Volta-Niger",""),
"ipk" => array (0, "Eskimo–Aleut","Eskimo","Inuit",""),
"ido" => array (0, "Constructed","","",""),
"isl" => array (0, "Indo-European","Germanic","North","West"),
"ita" => array (0, "Indo-European","Romance","Italo-Dalmatian","Tuscan"),
"iku" => array (0, "Eskimo–Aleut","Eskimo","Inuit",""),
"jpn" => array (0, "Japonic","","",""),
"jav" => array (0, "Austronesian","Malayo-Polynesian","Nuclear",""),
"kal" => array (0, "Eskimo–Aleut","Eskimo","Inuit",""),
"kan" => array (0, "Dravidian","Southern","Tamil-Kannada",""),
"kau" => array (0, "Nilo-Saharan","Saharan","West",""),
"kas" => array (0, "Indo-European","Indo-Aryan","Dardic",""),
"kaz" => array (0, "Turkic","Kipchak","Kipchak-Nogay",""),
"khm" => array (0, "Austro-Asiatic","Nuclear Mon-Khmer","",""),
"kik" => array (0, "Niger–Congo","Atlantic-Congo","Benue-Congo","Bantu"),
"kin" => array (0, "Niger–Congo","Atlantic-Congo","Benue-Congo","Bantu"),
"kir" => array (0, "Turkic","Kipchak","South",""),
"kom" => array (0, "Uralic","Permic","",""),
"kon" => array (0, "Niger–Congo","Atlantic-Congo","Benue-Congo","Bantu"),
"kor" => array (0, "Language isolate","","",""),
"kur" => array (0, "Indo-European","Iranian","West","North-West"),
"kua" => array (0, "Niger–Congo","Atlantic-Congo","Benue-Congo","Bantu"),
"lat" => array (0, "Indo-European","Romance","","death"),
"ltz" => array (0, "Indo-European","Germanic","West","Ober"),
"lug" => array (0, "Niger–Congo","Atlantic-Congo","Benue-Congo","Bantu"),
"lim" => array (0, "Indo-European","Germanic","West","Dutch"),
"lin" => array (0, "Niger–Congo","Atlantic-Congo","Benue-Congo","Bantu"),
"lao" => array (0, "Tai–Kadai","Tai","South-West",""),
"lit" => array (0, "Indo-European","Baltic","East",""),
"lub" => array (0, "Niger–Congo","Atlantic-Congo","Benue-Congo","Bantu"),
"lav" => array (0, "Indo-European","Baltic","East",""),
"glv" => array (0, "Indo-European","Celtic","Insular","Goidelic"),
"mkd" => array (0, "Indo-European","Slavic","South","Bulgarian"),
"mlg" => array (0, "Austronesian","Malayo-Polynesian","Barito","East"),
"msa" => array (0, "Austronesian","Malayo-Polynesian","Nuclear","Malayo-Sumbawan"),
"mal" => array (0, "Dravidian","Southern","Tamil-Kannada","Tamil-Malayalam"),
"mlt" => array (0, "Afro-Asiatic","Semitic","Central","Arabic"),
"mri" => array (0, "Austronesian","Malayo-Polynesian","Oceanic","Polynesian"),
"mar" => array (0, "Indo-European","Indo-Aryan","Southern",""),
"mah" => array (0, "Austronesian","Malayo-Polynesian","Oceanic","Central-East"),
"mon" => array (0, "Mongolic","Central","",""),
"nau" => array (0, "Austronesian","Malayo-Polynesian","Oceanic","Micronesian"),
"nav" => array (0, "Dené–Yeniseian","Athabaskan","South",""),
"nob" => array (0, "Indo-European","Germanic","North","East"),
"nde" => array (0, "Niger–Congo","Atlantic-Congo","Benue-Congo","Bantu"),
"nep" => array (0, "Indo-European","Indo-Aryan","North",""),
"ndo" => array (0, "Niger–Congo","Atlantic-Congo","Benue-Congo","Bantu"),
"nno" => array (0, "Indo-European","Germanic","North","West"),
"nor" => array (0, "Indo-European","Germanic","North","East"),
"iii" => array (0, "Sino-Tibetan","Tibeto-Burman","Lolo-Burmese","Loloish"),
"nbl" => array (0, "Niger–Congo","Atlantic-Congo","Benue-Congo","Bantu"),
"oci" => array (0, "Indo-European","Romance","Gallo-Iberian","Occitano-Romance"),
"oji" => array (0, "Algic","Algonquian","",""),
"chu" => array (0, "Indo-European","Slavic","South","death"),
"orm" => array (0, "Afro-Asiatic","Cushitic","Lowland East",""),
"ori" => array (0, "Indo-European","Indo-Aryan","Eastern",""),
"oss" => array (0, "Indo-European","Iranian","East","North-East"),
"pan" => array (0, "Indo-European","Indo-Aryan","North-West",""),
"pli" => array (0, "Indo-European","Indo-Aryan","","death"),
"fas" => array (0, "Indo-European","Iranian","West","South-West"),
"pol" => array (0, "Indo-European","Slavic","West",""),
"pus" => array (0, "Indo-European","Iranian","East","North-East"),
"por" => array (0, "Indo-European","Romance","Gallo-Iberian","West Iberian"),
"que" => array (0, "Quechuan","","",""),
"roh" => array (0, "Indo-European","Romance","Gallo-Iberian","Gallo-Rhaetian"),
"run" => array (0, "Niger–Congo","Atlantic-Congo","Benue-Congo","Bantu"),
"ron" => array (0, "Indo-European","Romance","East",""),
"rus" => array (0, "Indo-European","Slavic","East",""),
"san" => array (0, "Indo-European","Indo-Aryan","","death"),
"srd" => array (0, "Indo-European","Romance","",""),
"snd" => array (0, "Indo-European","Indo-Aryan","North-West",""),
"sme" => array (0, "Uralic","Sami","West",""),
"smo" => array (0, "Austronesian","Malayo-Polynesian","Oceanic","Polynesian"),
"sag" => array (0, "Creole","","",""),
"srp" => array (0, "Indo-European","Slavic","South","Serbocroate"),
"gla" => array (0, "Indo-European","Celtic","Insular","Goidelic"),
"sna" => array (0, "Niger–Congo","Atlantic-Congo","Benue-Congo","Bantu"),
"sin" => array (0, "Indo-European","Indo-Aryan","South","Insular"),
"slk" => array (0, "Indo-European","Slavic","West","Czechoslovak"),
"slv" => array (0, "Indo-European","Slavic","South",""),
"som" => array (0, "Afro-Asiatic","Cushitic","East",""),
"sot" => array (0, "Niger–Congo","Atlantic-Congo","Benue-Congo","Bantu"),
"spa" => array (0, "Indo-European","Romance","Gallo-Iberian","West Iberian"),
"sun" => array (0, "Austronesian","Malayo-Polynesian","Nuclear","Malayo-Sumbawan"),
"swa" => array (0, "Niger–Congo","Atlantic-Congo","Benue-Congo","Bantu"),
"ssw" => array (0, "Niger–Congo","Atlantic-Congo","Benue-Congo","Bantu"),
"swe" => array (0, "Indo-European","Germanic","North","East"),
"tam" => array (0, "Dravidian","Southern","Tamil-Kannada","Tamil-Malayalam"),
"tel" => array (0, "Dravidian","Central","",""),
"tgk" => array (0, "Indo-European","Iranian","West","South-West"),
"tha" => array (0, "Tai–Kadai","","",""),
"tir" => array (0, "Afro-Asiatic","Semitic","South","Ethiopian"),
"bod" => array (0, "Sino-Tibetan","Tibeto-Burman","Tibetan","Central"),
"tuk" => array (0, "Turkic","Oghuz","",""),
"tgl" => array (0, "Austronesian","Malayo-Polynesian","Philippine","Central"),
"tsn" => array (0, "Niger–Congo","Atlantic-Congo","Benue-Congo","Bantu"),
"ton" => array (0, "Austronesian","Malayo-Polynesian","Oceanic","Polynesian"),
"tur" => array (0, "Turkic","Oghuz","",""),
"tso" => array (0, "Niger–Congo","Atlantic-Congo","Benue-Congo","Bantu"),
"tat" => array (0, "Turkic","Kipchak","Kipchak-Bolgar",""),
"twi" => array (0, "Niger–Congo","Atlantic-Congo","Kwa","Tano"),
"tah" => array (0, "Austronesian","Malayo-Polynesian","Oceanic","Polynesian"),
"uig" => array (0, "Turkic","Uyghur","East",""),
"ukr" => array (0, "Indo-European","Slavic","East",""),
"urd" => array (0, "Indo-European","Indo-Aryan","Central","West"),
"uzb" => array (0, "Turkic","Uyghur","West",""),
"ven" => array (0, "Niger–Congo","Atlantic-Congo","Benue-Congo","Bantu"),
"vie" => array (0, "Austro-Asiatic","Vietic","Viet-Muong",""),
"vol" => array (0, "Constructed","","",""),
"wln" => array (0, "Indo-European","Romance","Gallo-Iberian","Gallo-Rhaetian"),
"cym" => array (0, "Indo-European","Celtic","Insular","Brythonic"),
"wol" => array (0, "Niger–Congo","Atlantic-Congo","Senegambian",""),
"fry" => array (0, "Indo-European","Germanic","West","Anglo-Frisian"),
"xho" => array (0, "Niger–Congo","","",""),
"yid" => array (0, "Indo-European","Germanic","West","Ober"),
"yor" => array (0, "Niger–Congo","Atlantic-Congo","Benue-Congo","Bantu"),
"zha" => array (0, "Tai–Kadai","Tai","",""),
"zul" => array (0, "Niger–Congo","Atlantic-Congo","Benue-Congo","Bantu"),
    );

// ToDo: future array for grade conversions
$langgrades = array (
'IELTS' => array (100,'IELTS','IELTS', 60),
    );

$langdbs = array (
    "weber" => 0,
    "forbes" => 0,
    "equal" => 0,
    //"first" => 0,
    //"second" => 0,
    //"combined" => 0,
    );

$resfields = array (
'any' => array ( 0, "any"),
'1' => array ( 0, "engineering", "tech"),
'2' => array ( 0, "engineering", "tech"),
'3' => array ( 0, "economics", "soc"),
'4' => array ( 0, "environmental", "bio"),
'5' => array ( 0, "agriculture", "bio"),
'6' => array ( 0, "agriculture", "bio"),
'7' => array ( 0, "agriculture", "bio"),
'8' => array ( 0, "agriculture", "bio"),
'9' => array ( 0, "agriculture", "bio"),
'10' => array ( 0, "infectious", "bio"),
'11' => array ( 0, "biomed", "bio"),
'12' => array ( 0, "biomed", "bio"),
'13' => array ( 0, "clinmed", "bio"),
'14' => array ( 0, "social", "soc"),
'15' => array ( 0, "multi", "art"),
'16' => array ( 0, "multi", "art"),
'17' => array ( 0, "multi", "art"),
'18' => array ( 0, "space", "tech"),
'19' => array ( 0, "computer", "tech"),
'20' => array ( 0, "neuro", "bio"),
'21' => array ( 0, "molbio", "bio"),
'22' => array ( 0, "molbio", "bio"),
'23' => array ( 0, "ecology", "bio"),
'24' => array ( 0, "biomed", "bio"),
'25' => array ( 0, "biomed", "bio"),
'26' => array ( 0, "molbio", "bio"),
'27' => array ( 0, "microbio", "bio"),
'28' => array ( 0, "economics", "soc"),
'29' => array ( 0, "economics", "soc"),
'30' => array ( 0, "clinmed", "bio"),
'31' => array ( 0, "biomed", "bio"),
'32' => array ( 0, "biomed", "bio"),
'33' => array ( 0, "chemistry", "sci"),
'34' => array ( 0, "chemistry", "sci"),
'35' => array ( 0, "chemistry", "sci"),
'36' => array ( 0, "chemistry", "sci"),
'37' => array ( 0, "chemistry", "sci"),
'38' => array ( 0, "chemistry", "sci"),
'39' => array ( 0, "chemistry", "sci"),
'40' => array ( 0, "chemistry", "sci"),
'41' => array ( 0, "neuro", "bio"),
'42' => array ( 0, "social", "soc"),
'43' => array ( 0, "computer", "tech"),
'44' => array ( 0, "computer", "tech"),
'45' => array ( 0, "computer", "tech"),
'46' => array ( 0, "computer", "tech"),
'47' => array ( 0, "computer", "tech"),
'48' => array ( 0, "computer", "tech"),
'49' => array ( 0, "computer", "tech"),
'50' => array ( 0, "computer", "tech"),
'51' => array ( 0, "computer", "tech"),
'52' => array ( 0, "engineering", "tech"),
'53' => array ( 0, "social", "soc"),
'54' => array ( 0, "clinmed", "bio"),
'55' => array ( 0, "chemistry", "sci"),
'56' => array ( 0, "social", "soc"),
'57' => array ( 0, "clinmed", "bio"),
'58' => array ( 0, "clinmed", "bio"),
'59' => array ( 0, "infectious", "bio"),
'60' => array ( 0, "molbio", "bio"),
'61' => array ( 0, "ecology", "bio"),
'62' => array ( 0, "economics", "soc"),
'63' => array ( 0, "social", "soc"),
'64' => array ( 0, "genmed", "bio"),
'65' => array ( 0, "social", "soc"),
'66' => array ( 0, "material", "tech"),
'67' => array ( 0, "clinmed", "bio"),
'68' => array ( 0, "clinmed", "bio"),
'69' => array ( 0, "biomed", "bio"),
'70' => array ( 0, "material", "tech"),
'71' => array ( 0, "engineering", "tech"),
'72' => array ( 0, "engineering", "tech"),
'73' => array ( 0, "clinmed", "bio"),
'74' => array ( 0, "chemistry", "sci"),
'75' => array ( 0, "engineering", "tech"),
'76' => array ( 0, "engineering", "tech"),
'77' => array ( 0, "environmental", "bio"),
'78' => array ( 0, "geosciences", "sci"),
'79' => array ( 0, "engineering", "tech"),
'80' => array ( 0, "engineering", "tech"),
'81' => array ( 0, "engineering", "tech"),
'82' => array ( 0, "engineering", "tech"),
'83' => array ( 0, "engineering", "tech"),
'84' => array ( 0, "environmental", "bio"),
'85' => array ( 0, "environmental", "bio"),
'86' => array ( 0, "animal", "bio"),
'87' => array ( 0, "environmental", "bio"),
'88' => array ( 0, "social", "soc"),
'89' => array ( 0, "multi", "art"),
'90' => array ( 0, "multi", "art"),
'91' => array ( 0, "multi", "art"),
'92' => array ( 0, "ecology", "bio"),
'93' => array ( 0, "multi", "art"),
'94' => array ( 0, "animal", "bio"),
'95' => array ( 0, "agriculture", "bio"),
'96' => array ( 0, "plantanimal", "bio"),
'97' => array ( 0, "clinmed", "bio"),
'98' => array ( 0, "molbio", "bio"),
'99' => array ( 0, "geosciences", "sci"),
'100' => array ( 0, "geosciences", "sci"),
'101' => array ( 0, "geosciences", "sci"),
'102' => array ( 0, "geosciences", "sci"),
'103' => array ( 0, "geosciences", "sci"),
'104' => array ( 0, "geosciences", "sci"),
'105' => array ( 0, "neuro", "bio"),
'106' => array ( 0, "neuro", "bio"),
'107' => array ( 0, "genmed", "bio"),
'108' => array ( 0, "genmed", "bio"),
'109' => array ( 0, "clinmed", "bio"),
'110' => array ( 0, "multi", "art"),
'111' => array ( 0, "multi", "art"),
'112' => array ( 0, "multi", "art"),
'113' => array ( 0, "agriculture", "bio"),
'114' => array ( 0, "social", "soc"),
'115' => array ( 0, "geosciences", "sci"),
'116' => array ( 0, "infectious", "bio"),
'117' => array ( 0, "economics", "soc"),
'118' => array ( 0, "infectious", "bio"),
'119' => array ( 0, "social", "soc"),
'120' => array ( 0, "chemistry", "sci"),
'121' => array ( 0, "agriculture", "bio"),
'122' => array ( 0, "social", "soc"),
'123' => array ( 0, "multi", "art"),
'124' => array ( 0, "social", "soc"),
'125' => array ( 0, "environmental", "bio"),
'126' => array ( 0, "multi", "art"),
'127' => array ( 0, "economics", "soc"),
'128' => array ( 0, "animal", "bio"),
'129' => array ( 0, "material", "tech"),
'130' => array ( 0, "material", "tech"),
'131' => array ( 0, "material", "tech"),
'132' => array ( 0, "material", "tech"),
'133' => array ( 0, "material", "tech"),
'134' => array ( 0, "material", "tech"),
'135' => array ( 0, "material", "tech"),
'136' => array ( 0, "material", "tech"),
'137' => array ( 0, "material", "tech"),
'138' => array ( 0, "biomed", "bio"),
'139' => array ( 0, "mathematics", "sci"),
'140' => array ( 0, "mathematics", "sci"),
'141' => array ( 0, "engineering", "tech"),
'142' => array ( 0, "engineering", "tech"),
'143' => array ( 0, "engineering", "tech"),
'144' => array ( 0, "genmed", "bio"),
'145' => array ( 0, "genmed", "bio"),
'146' => array ( 0, "biomed", "bio"),
'147' => array ( 0, "genmed", "bio"),
'148' => array ( 0, "biomed", "bio"),
'149' => array ( 0, "biomed", "bio"),
'150' => array ( 0, "material", "tech"),
'151' => array ( 0, "material", "tech"),
'152' => array ( 0, "geosciences", "sci"),
'153' => array ( 0, "microbio", "bio"),
'154' => array ( 0, "biomed", "bio"),
'155' => array ( 0, "geosciences", "sci"),
'156' => array ( 0, "material", "tech"),
'157' => array ( 0, "biomed", "bio"),
'158' => array ( 0, "plantanimal", "bio"),
'159' => array ( 0, "material", "tech"),
'160' => array ( 0, "neuro", "bio"),
'161' => array ( 0, "neuro", "bio"),
'162' => array ( 0, "physics", "sci"),
'163' => array ( 0, "genmed", "bio"),
'164' => array ( 0, "biomed", "bio"),
'165' => array ( 0, "clinmed", "bio"),
'166' => array ( 0, "ecology", "bio"),
'167' => array ( 0, "biomed", "bio"),
'168' => array ( 0, "computer", "tech"),
'169' => array ( 0, "clinmed", "bio"),
'170' => array ( 0, "physics", "sci"),
'171' => array ( 0, "ecology", "bio"),
'172' => array ( 0, "clinmed", "bio"),
'173' => array ( 0, "clinmed", "bio"),
'174' => array ( 0, "geosciences", "sci"),
'175' => array ( 0, "infectious", "bio"),
'176' => array ( 0, "biomed", "bio"),
'177' => array ( 0, "clinmed", "bio"),
'178' => array ( 0, "clinmed", "bio"),
'179' => array ( 0, "pharma", "bio"),
'180' => array ( 0, "multi", "art"),
'181' => array ( 0, "geosciences", "sci"),
'182' => array ( 0, "physics", "sci"),
'183' => array ( 0, "material", "tech"),
'184' => array ( 0, "physics", "sci"),
'185' => array ( 0, "material", "tech"),
'186' => array ( 0, "physics", "sci"),
'187' => array ( 0, "physics", "sci"),
'188' => array ( 0, "physics", "sci"),
'189' => array ( 0, "physics", "sci"),
'190' => array ( 0, "physics", "sci"),
'191' => array ( 0, "biomed", "bio"),
'192' => array ( 0, "economics", "soc"),
'193' => array ( 0, "plantanimal", "bio"),
'194' => array ( 0, "social", "soc"),
'195' => array ( 0, "chemistry", "sci"),
'196' => array ( 0, "psycho", "soc"),
'197' => array ( 0, "psycho", "soc"),
'198' => array ( 0, "psycho", "soc"),
'199' => array ( 0, "psycho", "soc"),
'200' => array ( 0, "psycho", "soc"),
'201' => array ( 0, "psycho", "soc"),
'202' => array ( 0, "psycho", "soc"),
'203' => array ( 0, "psycho", "soc"),
'204' => array ( 0, "psycho", "soc"),
'205' => array ( 0, "psycho", "soc"),
'206' => array ( 0, "psycho", "soc"),
'207' => array ( 0, "psycho", "soc"),
'208' => array ( 0, "social", "soc"),
'209' => array ( 0, "social", "soc"),
'210' => array ( 0, "clinmed", "bio"),
'211' => array ( 0, "social", "soc"),
'212' => array ( 0, "geosciences", "sci"),
'213' => array ( 0, "biomed", "bio"),
'214' => array ( 0, "clinmed", "bio"),
'215' => array ( 0, "clinmed", "bio"),
'216' => array ( 0, "computer", "tech"),
'217' => array ( 0, "engineering", "tech"),
'218' => array ( 0, "social", "soc"),
'219' => array ( 0, "social", "soc"),
'220' => array ( 0, "social", "soc"),
'221' => array ( 0, "social", "soc"),
'222' => array ( 0, "social", "soc"),
'223' => array ( 0, "social", "soc"),
'224' => array ( 0, "agriculture", "bio"),
'225' => array ( 0, "chemistry", "sci"),
'226' => array ( 0, "clinmed", "bio"),
'227' => array ( 0, "mathematics", "sci"),
'228' => array ( 0, "neuro", "bio"),
'229' => array ( 0, "clinmed", "bio"),
'230' => array ( 0, "computer", "tech"),
'231' => array ( 0, "engineering", "tech"),
'232' => array ( 0, "pharma", "bio"),
'233' => array ( 0, "clinmed", "bio"),
'234' => array ( 0, "computer", "tech"),
'235' => array ( 0, "computer", "tech"),
'236' => array ( 0, "infectious", "bio"),
'237' => array ( 0, "social", "soc"),
'238' => array ( 0, "biomed", "bio"),
'239' => array ( 0, "animal", "bio"),
'240' => array ( 0, "infectious", "bio"),
'241' => array ( 0, "environmental", "bio"),
'242' => array ( 0, "social", "soc"),
'243' => array ( 0, "animal", "bio"),
    );

$pubfields = array(  
    'any' => array ( 0, "any", "art"),
    'live' => array ( 0, "live", "art"),
    'conference' => array ( 0, "live", "any"),
    'course' => array ( 0, "live", "any"),
    'theatre' => array ( 0, "live", "art"),
    'concert' => array ( 0, "live", "art"),
    'musical' => array ( 0, "live", "art"),
    'sport' => array ( 0, "live", "art"),
    'written' => array ( 0, "written", "art"),
    'nonfiction' => array ( 0, "written", "any"),
    'patent' => array ( 0, "written", "any"),
    'essay' => array ( 0, "written", "any"),
    'fiction' => array ( 0, "written", "art"),
    'blog' => array ( 0, "media", "any"),
    'media' => array ( 0, "media", "any"),
    'music' => array ( 0, "media", "art"),
    'audiovisual' => array ( 0, "media", "any"),
    'art' => array ( 0, "media", "art"),
  );

$skilltypes = array(  
    'accounting' => array(0, "soc"), 
    'artistic' => array(0, "art"), 
    'music' => array(0, "art"), 
    'asset' => array(0, "soc"), 
    'aviation' => array(0, "tech"), 
    'business' => array(0, "soc"), 
    'clerical' => array(0, "soc"),   
    'chiro' => array(0, "bio"), 
    'computer' => array(0, "tech"), 
    'programming' => array(0, "tech"),  
    'compspec' => array(0, "tech"), 
    'driving' => array(0, "tech"), 
    'development' => array(0, "soc"), 
    'legal' => array(0, "soc"), 
    'logistics' => array(0, "tech"), 
    'medicine' => array(0, "bio"), 
    'project' => array(0, "tech"), 
    'technical' => array(0, "tech"), 
    'sanitary' => array(0, "bio"), 
    'security' => array(0, "soc"), 
    'sport' => array(0, "art"), 
    'other' => array(0, "soc"), 
  );

 $defaultvalues = array (
         'advanced_values' => $advanced_values, 
         'edufields' => $edufields, 
         'educountries' => $educountries, 
         'edudatabases' => $edudatabases, 
         'credtypes' => $credtypes, 
         'prestypes' => $prestypes,  
         'hourtypes' => $hourtypes,
         'gradetypes' => $gradetypes,
         'sectors' => $sectors,
         'currencies' => $currencies,
         'workdatabases' => $workdatabases, 
         'industryclasses' => $industryclasses,
         'languages' => $languages, 
         'langgrades' => $langgrades,
         'langdbs' => $langdbs,
         'resfields' => $resfields,
         'pubfields' => $pubfields,
         'skilltypes' => $skilltypes,
      );
  
      return $defaultvalues;
  }